Sets the value of the sample-point at the specified position. For stereo SoundData objects, the data from the left and right channels are interleaved in that order.
SoundData:setSample( i, sample )
number i
number sample
Nothing.
Available since LÖVE 11.0 |
This variant is not supported in earlier versions. |
Sets the value of a sample using an explicit sample index instead of interleaving them in the sample position parameter.
SoundData:setSample( i, channel, sample )
number i
number channel
number sample
Nothing.