Class StreamedSound

Generalized sound stream class. This can be used to implement any type of sound, including compressed audio streams.

class StreamedSound ;


bitDepth[get] uintNumber of bits in each sample channel
channels[get] uintNumber of channels per sample
sampleFormat[get] SampleFormatSample format
sampleRate[get] uintNumber of samples per second, in Hz
sampleSize[get] uintNumber of bytes in each sample (bitDepth / 8 * channels)


reset () Return to the start of a stream
stream (buffer) Fill in the buffer with next portion of sound data. Function returns actual number of bytes written. At the end of a stream, zero is returned.