#include <audiodriver.h>
Inheritance diagram for AudioDriver:
Public Member Functions | |
virtual void | play ()=0 |
virtual void | playInThread ()=0 |
virtual void | addAudioFile (AudioFormat *audioFile)=0 |
virtual bool | initialize ()=0 |
virtual void | shutdown ()=0 |
|
Abstract function for adding a audio file which later on can be played with the play or playInThread functions.
Implemented in OSSDriver. |
|
Abstract function for initializing the registered audio device.
Implemented in OSSDriver. |
|
Abstract 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. Implemented in OSSDriver. |
|
Abstract function for playing PCM data. It works excactly like the play function except that it plays in a separate thread. Implemented in OSSDriver. |
|
Abstract function for freeing the audio device so that other programs can use it. Implemented in OSSDriver. |