SoundData:getSample

Gets the sample at the specified position.

Function

Synopsis

sample = SoundData:getSample( i )

Arguments

number i
An integer value specifying the position of the sample (0 points to the first sample).

Returns

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

See Also


Other Languages