Project

General

Profile

Previous Up Next

asSndFeed
Feeds the audio data queue to be used by the AsSnd.
This method acts only on a AsSnd in low-level mode.

AsSnd asSndFeed (
AsSnd _sound_
S _data_
I _offset_
)
Parameters

_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:
  • 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_'.
Return value

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