#include <AudioSource.h>
Inheritance diagram for AudioSource:
Definition at line 91 of file AudioSource.h.
Public Member Functions | |
virtual | ~AudioSource (void) throw ( Exception ) |
Destructor. | |
unsigned int | getChannel (void) const throw () |
Get the number of channels for this AudioSource. | |
virtual bool | isBigEndian (void) const throw () |
Tell if the data from this source comes in big or little endian. | |
unsigned int | getSampleRate (void) const throw () |
Get the sample rate per seconds for this AudioSource. | |
unsigned int | getBitsPerSample (void) const throw () |
Get the number of bits per sample for this AudioSource. | |
Static Public Member Functions | |
static AudioSource * | createDspSource (const char *deviceName, int sampleRate=44100, int bitsPerSample=16, int channel=2) throw ( Exception ) |
Factory method for creating an AudioSource object of the appropriate type, based on the compiled DSP support and the supplied DSP name parameter. | |
Protected Member Functions | |
AudioSource (unsigned int sampleRate=44100, unsigned int bitsPerSample=16, unsigned int channel=2) throw ( Exception ) | |
Constructor. | |
AudioSource (const AudioSource &as) throw ( Exception ) | |
Copy Constructor. | |
virtual AudioSource & | operator= (const AudioSource &as) throw ( Exception ) |
Assignment operator. |
|
Constructor. Because all values have defaults, this is also the default constructor.
Definition at line 154 of file AudioSource.h. |
|
Copy Constructor.
Definition at line 169 of file AudioSource.h. |
|
Destructor.
Definition at line 203 of file AudioSource.h. |
|
Factory method for creating an AudioSource object of the appropriate type, based on the compiled DSP support and the supplied DSP name parameter.
Definition at line 62 of file AudioSource.cpp. References Reporter::reportEvent(). |
|
Get the number of bits per sample for this AudioSource.
Definition at line 251 of file AudioSource.h. |
|
Get the number of channels for this AudioSource.
Definition at line 213 of file AudioSource.h. |
|
Get the sample rate per seconds for this AudioSource.
Definition at line 239 of file AudioSource.h. |
|
Tell if the data from this source comes in big or little endian.
Reimplemented in AlsaDspSource, OssDspSource, and SolarisDspSource. Definition at line 224 of file AudioSource.h. |
|
Assignment operator.
Definition at line 183 of file AudioSource.h. References Source::operator=(). Referenced by SolarisDspSource::operator=(), OssDspSource::operator=(), and AlsaDspSource::operator=(). |