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 i
number 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 i
number channel
number sample