![]() |
![]() |
Next![]() |
Feeds the audio data queue to be used by the AsSnd.Parameters
This method acts only on a AsSnd in low-level mode.
AsSnd asSndFeed ( AsSnd sound S data I offset )
Return value
sound Applicable AsSnd object data Audio data. If this parameter is nil, a blank is placed in the data queue (refer to 'offset' parameter below) offset Position at which the data is added in the queue, relative to the current endpoint of the queue. It can take the following values:
- null: ( 0 or nil ) 'data' is written at the end of the queue.
- positive: a blank of length 'offset' (in milliseconds) is left at the end of the queue, then the data is placed.
- negative:
- if 'data' is nil, the end of the queue is erased for a length of 'offset' (in milliseconds).
- if 'data' is other than nil, rewinding occurs for a length of 'offset' and replace the existing data by 'data'.
The AsSnd given as a parameter, or nil in case of a failure.Remark
To verify if there is still data present in the queue, use the asSndGetSize method. As long as its value is greater than 0, we can be sure there will be no blanks upon reading the sound.See Also
asSndInit