Reads frames from the Sound into a table, Blob, or another Sound.
Arguments
Name
Type
Default
Description
count
number
nil
The number of frames to read. If nil, reads as many frames as possible.
Compressed sounds will automatically be decoded.
Reading from a stream will ignore the source offset and read the oldest frames.
srcOffset
number
0
A frame offset to apply to the sound when reading frames.
Returns
Name
Type
Description
t
table
A table containing audio frames.
count
number
The number of frames read.
Arguments
Name
Type
Default
Description
t
table
An existing table to read frames into.
count
number
nil
The number of frames to read. If nil, reads as many frames as possible.
Compressed sounds will automatically be decoded.
Reading from a stream will ignore the source offset and read the oldest frames.
srcOffset
number
0
A frame offset to apply to the sound when reading frames.
dstOffset
number
0
An offset to apply to the destination when writing frames (indices for tables, bytes for Blobs, frames for Sounds).
The number of frames to read. If nil, reads as many frames as possible.
Compressed sounds will automatically be decoded.
Reading from a stream will ignore the source offset and read the oldest frames.
srcOffset
number
0
A frame offset to apply to the sound when reading frames.
dstOffset
number
0
An offset to apply to the destination when writing frames (indices for tables, bytes for Blobs, frames for Sounds).
The number of frames to read. If nil, reads as many frames as possible.
Compressed sounds will automatically be decoded.
Reading from a stream will ignore the source offset and read the oldest frames.
srcOffset
number
0
A frame offset to apply to the sound when reading frames.
dstOffset
number
0
An offset to apply to the destination when writing frames (indices for tables, bytes for Blobs, frames for Sounds).