Difference between revisions of "SoundData:setSample"

m (Minor edit to make language consistent with getSample.)
m (forgot the second part...)
Line 1: Line 1:
Sets the value of the sample-point at the specified position.
+
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.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 11:59, 3 October 2017

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.

Function

Synopsis

SoundData:setSample( i, sample )

Arguments

number i
The position of the sample (0 means first sample).
number sample
A normalized sample (range -1.0 to 1.0).

Returns

Nothing.

See Also


Other Languages