Gets 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.
sample = SoundData:getSample( i )
number inumber sample Available since LÖVE 11.0
This variant is not supported in earlier versions.
Gets the value of a sample using an explicit sample index instead of interleaving them in the sample position parameter.
sample = SoundData:getSample( i, channel )
number inumber channelnumber sample
© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/SoundData:getSample