#include <ossdriver.h>
Inheritance diagram for OSSDriver:
Public Member Functions | |
OSSDriver (const char *device) | |
void | play () |
void | playInThread () |
void | addAudioFile (AudioFormat *audioFile) |
bool | initialize () |
void | shutdown () |
|
Registers the given device.
|
|
Function for adding a audio file which later on can be played with the play or playInThread functions.
Implements AudioDriver. |
|
Function for initializing the registered audio device.
Implements AudioDriver. |
|
Function for playing PCM data. The registered audio format takes care of decoding to raw PCM. This function will not free the CPU until the playing is finished. Use the playInThread function if you want to play the sound in a separate thread. Implements AudioDriver. |
|
Function for playing PCM data. It works excactly like the play function except that it plays in a separate thread. Implements AudioDriver. |
|
Function for freeing the audio device so that other programs can use it. Implements AudioDriver. |