Previous Up Next

asWaveRead
Recuperates the data from the current read position in the AsWave given as a parameter and returns them as a character string.

S asWaveRead (
AsWave _wave_
I _size_
I _loop_
)
Parameters

_wave_
Object of type AsWave
_size_
Size of data to be recuperated. If '_size_' equals nil, '_loop_' parameter is ignored and the function returns the complete Wave data from the current position to the end of the file (the read position is then set to the end of file).
_loop_
Reading flag.
Value Meaning
AS_WAVE_LOOP If the end of the file is encountered during reading of the data, reading restarts at the beginning of the file.
Return value

The recuperated audio data, or nil in case of a failure.