AudioStream:write

Edit

Writes data to the AudioStream.




Arguments

NameTypeDescription
table{number} A table containing audio samples to write to the stream.

Returns

NameTypeDescription
nnumber The number of audio frames that were actually written to the stream.

Arguments

NameTypeDescription
soundSound A Sound to write to the stream.

Returns

NameTypeDescription
nnumber The number of audio frames that were actually written to the stream.

Arguments

NameTypeDescription
blobBlob A Blob to write to the stream.

Returns

NameTypeDescription
nnumber The number of audio frames that were actually written to the stream.

Notes

Only one thread can write to the stream at a time.

See also