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 ===
<source lang="lua">
SoundData:setSample( i, sample )
</source>
=== Arguments ===
{{param|number|i|An integer value specifying the position of the sample (starting at 0).}}
{{param|number|sample|The normalized samplepoint (range -1.0 to 1.0).}}
=== Returns ===
Nothing.

== Function ==
{{newin|[[11.0]]|110|type=variant}}
Sets the value of a sample using an explicit sample index instead of interleaving them in the sample position parameter.
=== Synopsis ===
<source lang="lua">
SoundData:setSample( i, channel, sample )
</source>
=== Arguments ===
{{param|number|i|An integer value specifying the position of the sample (starting at 0).}}
{{param|number|channel|The index of the channel to set within the given sample.}}
{{param|number|sample|The normalized samplepoint (range -1.0 to 1.0).}}
=== Returns ===
Nothing.

== See Also ==
* [[parent::SoundData]]
[[Category:Functions]]
{{#set:Description=Sets the sample at the specified position.}}
{{#set:Since=000}}
== Other Languages ==
{{i18n|SoundData:setSample}}