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.
|
| srcOffset | number | 0 |
A frame offset to apply to the sound when reading frames.
|
Returns
| Name | Type | Description |
| t | {number} |
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.
|
| 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).
|
Returns
| Name | Type | Description |
| t | {number} |
A table containing audio frames.
|
| count | number |
The number of frames read.
|
Arguments
| Name | Type | Default | Description |
| blob | Blob | |
A Blob 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.
|
| 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).
|
Returns
| Name | Type | Description |
| count | number |
The number of frames read.
|
Arguments
| Name | Type | Default | Description |
| sound | Sound | |
Another Sound to copy 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.
|
| 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).
|
Returns
| Name | Type | Description |
| count | number |
The number of frames read.
|
See also