Return to the start of a stream
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.
Number of bits in each sample channel
Number of channels per sample
Sample format
Number of samples per second, in Hz
Number of bytes in each sample (bitDepth / 8 * channels)
Generalized sound stream class. This can be used to implement any type of sound, including compressed audio streams.