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 inumber sampleNothing.
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 inumber channelnumber sampleNothing.
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/SoundData:setSample