W3cubDocs

/LÖVE

SoundData:getSample

Gets the sample at the specified position.

Function

Synopsis

sample = SoundData:getSample( i )

Arguments

number i
The position of the sample (0 means first sample).

Returns

number sample
The normalized sample (range -1.0 to 1.0).

See Also


© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/SoundData:getSample