SoundData:setSample
Modify a single sample in the SoundData. Sample indices start at zero, and samples should be between -1 and 1.
SoundData:setSample(index, value)
Arguments
Name | Type | Description |
index | number | The index of the sample to set. |
value | number | The new value of the sample. |
Returns
Nothing
Notes
Note that samples for individual channels in stereo sounds are stored next to each other.
See also
SoundData:getSampleCount
SoundData:getSampleRate
SoundData:getSample
SoundData