Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

OSSDriver Class Reference

#include <ossdriver.h>

Inheritance diagram for OSSDriver:

AudioDriver List of all members.

Public Member Functions

 OSSDriver (const char *device)
void play ()
void playInThread ()
void addAudioFile (AudioFormat *audioFile)
bool initialize ()
void shutdown ()

Detailed Description

OSS audio driver. This takes care of initializing the registered audio device with differents parameters. The device will then by ready to to play sound if the initializing was successfull.

Bjoern Erik Nilsen & Fredrik Berg Kjoelstad

Constructor & Destructor Documentation

OSSDriver::OSSDriver const char *  device  ) 

Registers the given device.

device the device to be used

Member Function Documentation

void OSSDriver::addAudioFile AudioFormat audioFile  )  [virtual]

Function for adding a audio file which later on can be played with the play or playInThread functions.

audioFile the audio file to be played

Implements AudioDriver.

bool OSSDriver::initialize  )  [virtual]

Function for initializing the registered audio device.

true on success, false otherwise

Implements AudioDriver.

void OSSDriver::play  )  [virtual]

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.

void OSSDriver::playInThread  )  [virtual]

Function for playing PCM data. It works excactly like the play function except that it plays in a separate thread.

Implements AudioDriver.

void OSSDriver::shutdown  )  [virtual]

Function for freeing the audio device so that other programs can use it.

Implements AudioDriver.

The documentation for this class was generated from the following files:
Generated on Thu May 19 01:51:22 2005 for stopmotion.kdevelop by  doxygen 1.4.2