13 #include <semaphore.h> 25 #define MAX_DEVICE_NAME_SIZE 256 67 unsigned samplesPerSec,
158 #endif // _MpidAlsa_h_
static const char * getDefaultDeviceName()
Get the name of the default input ALSA PCM audio device.
Definition: MpidAlsa.cpp:164
void skipFrame()
Add frame time to mCurrentFrameTime.
Definition: MpidAlsa.cpp:216
UtlBoolean isDeviceValid()
Inquire if the device is valid.
Definition: MpAlsa.h:187
uint32_t MpFrameTime
Definition: MpTypes.h:53
OsStatus disableDevice()
Uninitialize device driver.
Definition: MpidAlsa.cpp:127
Wrapper for ALSA device that use file descriptor to communicate.
Definition: MpAlsa.h:32
void freeBuffers()
Free internal ALSA buffers.
MpidAlsa & operator=(const MpidAlsa &rhs)
Assignment operator (not implemented for this class).
MpAudioSample * getBuffer()
Get buffer from internal buffers.
MpAlsa * pDevWrapper
Definition: MpidAlsa.h:139
OsStatus initBuffers()
Allocate internal ALSA buffers.
int16_t MpAudioSample
Definition: MpTypes.h:44
#define MAX_DEVICE_NAME_SIZE
Definition: MpidAlsa.h:25
static int getDeviceNames(UtlContainer &devicesNames)
Get the list of names of the available input ALSA PCM audio device(s)
Definition: MpidAlsa.cpp:194
MpAlsaContainer * mpCont
Pointer to Wrapper container.
Definition: MpidAlsa.h:120
void pushFrame()
Push audio frame to InputDeviceManager.
Definition: MpidAlsa.cpp:205
virtual ~MpidAlsa()
Destructor.
Definition: MpidAlsa.cpp:59
UtlBoolean isDeviceValid()
Inquire if the ALSA device is valid.
Definition: MpidAlsa.h:152
MpAudioSample * mAudioFrame
Wave buffer.
Definition: MpidAlsa.h:119
MpidAlsa(const UtlString &name, MpInputDeviceManager &deviceManager)
Default constructor.
Definition: MpidAlsa.cpp:42
Definition: MpAlsaContainer.h:27
Container for device specific input ALSA driver.
Definition: MpidAlsa.h:36
OsStatus enableDevice(unsigned samplesPerFrame, unsigned samplesPerSec, MpFrameTime currentFrameTime)
Initialize device driver and state.
Definition: MpidAlsa.cpp:67
static char spDefaultDeviceName[MAX_DEVICE_NAME_SIZE]
Definition: MpidAlsa.h:140