#include <OssDspSource.h>
Inheritance diagram for OssDspSource:
Definition at line 57 of file OssDspSource.h.
Public Member Functions | |
OssDspSource (const char *name, int sampleRate=44100, int bitsPerSample=16, int channel=2) throw ( Exception ) | |
Constructor. | |
OssDspSource (const OssDspSource &ods) throw ( Exception ) | |
Copy Constructor. | |
virtual | ~OssDspSource (void) throw ( Exception ) |
Destructor. | |
virtual OssDspSource & | operator= (const OssDspSource &ds) throw ( Exception ) |
Assignment operator. | |
virtual bool | isBigEndian (void) const throw () |
Tell if the data from this source comes in big or little endian. | |
virtual bool | open (void) throw ( Exception ) |
Open the OssDspSource. | |
virtual bool | isOpen (void) const throw () |
Check if the OssDspSource is open. | |
virtual bool | canRead (unsigned int sec, unsigned int usec) throw ( Exception ) |
Check if the OssDspSource can be read from. | |
virtual unsigned int | read (void *buf, unsigned int len) throw ( Exception ) |
Read from the OssDspSource. | |
virtual void | close (void) throw ( Exception ) |
Close the OssDspSource. | |
Protected Member Functions | |
OssDspSource (void) throw ( Exception ) | |
Default constructor. | |
void | init (const char *name) throw ( Exception ) |
Initialize the object. | |
void | strip (void) throw ( Exception ) |
De-iitialize the object. |
|
Default constructor. Always throws an Exception.
Definition at line 86 of file OssDspSource.h. |
|
Constructor.
Definition at line 123 of file OssDspSource.h. References init(). |
|
Copy Constructor.
Definition at line 141 of file OssDspSource.h. References init(). |
|
Destructor.
Definition at line 153 of file OssDspSource.h. References strip(). |
|
Check if the OssDspSource can be read from. Blocks until the specified time for data to be available. Puts the OSS DSP device into recording mode.
Implements Source. |
|
Close the OssDspSource.
Implements Source. |
|
Initialize the object.
Referenced by operator=(), and OssDspSource(). |
|
Tell if the data from this source comes in big or little endian.
Reimplemented from AudioSource. |
|
Check if the OssDspSource is open.
Implements Source. Definition at line 204 of file OssDspSource.h. |
|
Open the OssDspSource. This does not put the OSS DSP device into recording mode. To start getting samples, call either canRead() or read().
Implements Source. |
|
Assignment operator.
Definition at line 166 of file OssDspSource.h. References init(), AudioSource::operator=(), and strip(). |
|
Read from the OssDspSource. Puts the OSS DSP device into recording mode.
Implements Source. |
|
De-iitialize the object.
Reimplemented from AudioSource. Referenced by operator=(), and ~OssDspSource(). |