#include <AlsaDspSource.h>
Inheritance diagram for AlsaDspSource:


Definition at line 70 of file AlsaDspSource.h.
Public Member Functions | |
| AlsaDspSource (const char *name, int sampleRate=44100, int bitsPerSample=16, int channel=2) throw ( Exception ) | |
| Constructor. | |
| AlsaDspSource (const AlsaDspSource &ds) throw ( Exception ) | |
| Copy Constructor. | |
| virtual | ~AlsaDspSource (void) throw ( Exception ) |
| Destructor. | |
| virtual AlsaDspSource & | operator= (const AlsaDspSource &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 AlsaDspSource. | |
| virtual bool | isOpen (void) const throw () |
| Check if the AlsaDspSource is open. | |
| virtual bool | canRead (unsigned int sec, unsigned int usec) throw ( Exception ) |
| Check if the AlsaDspSource can be read from. | |
| virtual unsigned int | read (void *buf, unsigned int len) throw ( Exception ) |
| Read from the AlsaDspSource. | |
| virtual void | close (void) throw ( Exception ) |
| Close the AlsaDspSource. | |
| virtual unsigned int | getBufferTime (void) const |
| Returns the buffer size in useconds. | |
| virtual void | setBufferTime (unsigned int time) |
| Sets the number of useconds to buffer audio in ALSA. | |
Protected Member Functions | |
| AlsaDspSource (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 109 of file AlsaDspSource.h. |
|
||||||||||||||||||||
|
Constructor.
Definition at line 145 of file AlsaDspSource.h. References init(). |
|
|
Copy Constructor.
Definition at line 162 of file AlsaDspSource.h. References init(). |
|
|
Destructor.
Definition at line 174 of file AlsaDspSource.h. References strip(). |
|
||||||||||||
|
Check if the AlsaDspSource can be read from. Blocks until the specified time for data to be available. Puts the PCM into recording mode.
Implements Source. |
|
|
Close the AlsaDspSource.
Implements Source. |
|
|
Returns the buffer size in useconds.
Definition at line 272 of file AlsaDspSource.h. |
|
|
Initialize the object.
Referenced by AlsaDspSource(), and operator=(). |
|
|
Tell if the data from this source comes in big or little endian.
Reimplemented from AudioSource. |
|
|
Check if the AlsaDspSource is open.
Implements Source. Definition at line 225 of file AlsaDspSource.h. |
|
|
Open the AlsaDspSource. This does not put Alsa device into recording mode. To start getting samples, call either canRead() or read().
Implements Source. |
|
|
Assignment operator.
Definition at line 187 of file AlsaDspSource.h. References init(), AudioSource::operator=(), and strip(). |
|
||||||||||||
|
Read from the AlsaDspSource. Puts the PCM into recording mode.
Implements Source. |
|
|
Sets the number of useconds to buffer audio in ALSA.
Definition at line 283 of file AlsaDspSource.h. |
|
|
De-iitialize the object.
Reimplemented from AudioSource. Referenced by operator=(), and ~AlsaDspSource(). |
1.4.4