Sound:setFrame

Edit

Sets a single audio frame in the Sound.

Sound:setFrame(offset, ...)

Arguments

NameTypeDescription
offsetnumber An offset in the Sound to write to (0 is the first frame).
...number Audio samples.

Returns

Nothing

Notes

Sounds with a sample format of f32 should have samples between -1 and 1. For the i16 format, samples should be between -32768 and 32767.

See also