Difference between revisions of "SoundData:setSample"

m (Minor edit to make language consistent with getSample.)
Line 1: Line 1:
Sets the sample at the specified position.
+
Sets the value of the sample-point at the specified position.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 20:05, 2 October 2017

Sets the value of the sample-point at the specified position.

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