
#include <Devices/AudioGrabber.H>
Inheritance diagram for AudioGrabber:


For now, grabbing is done using a blocking read() onto the DSP device.
Definition at line 49 of file AudioGrabber.H.
Public Member Functions | |
| AudioGrabber (OptionManager &mgr, const std::string &descrName="Audio Grabber Driver", const std::string &tagName="AudioGrabber") | |
| Constructor. | |
| ~AudioGrabber () | |
| Destructor. | |
| template<class T> | |
| void | grab (AudioBuffer< T > &buf) const |
| Grab a buffer. | |
Protected Member Functions | |
| void | start2 () |
| get started (see ModelComponent.H) | |
| void | stop1 () |
| get stopped (see ModelComponent.H) | |
Protected Attributes | |
| OModelParam< std::string > | itsDevName |
| audio device name | |
| OModelParam< uint > | itsBits |
| bits per sample (8 or 16) | |
| OModelParam< uint > | itsFreq |
| sampling frequency (Hz) | |
| OModelParam< uint > | itsBufsamples |
| samples per buffer | |
| OModelParam< bool > | itsStereo |
| stereo recording? | |
|
||||||||||||||||
|
Constructor.
Definition at line 55 of file AudioGrabber.C. |
|
|
Destructor.
Definition at line 136 of file AudioGrabber.C. |
|
||||||||||
|
Grab a buffer.
Definition at line 141 of file AudioGrabber.C. References ASSERT, AudioBuffer< T >::getDataPtr(), OModelParam< T >::getVal(), itsBits, itsBufsamples, itsFreq, itsStereo, NO_INIT, PLERROR, and AudioBuffer< T >::sizeBytes(). Referenced by audiorecorder(), and grabAudio(). |
|
|
get started (see ModelComponent.H)
Reimplemented from ModelComponent. Definition at line 67 of file AudioGrabber.C. References OModelParam< T >::getVal(), itsBits, itsBufsamples, itsDevName, itsFreq, itsStereo, LDEBUG, LFATAL, LINFO, PLERROR, PLFATAL, and x. |
|
|
get stopped (see ModelComponent.H)
Reimplemented from ModelComponent. Definition at line 123 of file AudioGrabber.C. References PLFATAL. |
|
|
bits per sample (8 or 16)
Definition at line 69 of file AudioGrabber.H. |
|
|
samples per buffer
Definition at line 71 of file AudioGrabber.H. |
|
|
audio device name
Definition at line 68 of file AudioGrabber.H. Referenced by start2(). |
|
|
sampling frequency (Hz)
Definition at line 70 of file AudioGrabber.H. |
|
|
stereo recording?
Definition at line 72 of file AudioGrabber.H. |
1.4.4