18 #include <semaphore.h> 69 unsigned samplesPerSec,
152 #endif // _MpidOss_h_ void pushFrame()
Push audio frame to InputDeviceManager.
Definition: MpidOss.cpp:158
MpAudioSample * getBuffer()
Get buffer from internal buffers.
OsStatus disableDevice()
Uninitialize device driver.
Definition: MpidOss.cpp:128
uint32_t MpFrameTime
Definition: MpTypes.h:53
Container for device specific input OSS driver.
Definition: MpidOss.h:38
OsStatus initBuffers()
Allocate internal OSS buffers.
MpidOss & operator=(const MpidOss &rhs)
Assignment operator (not implemented for this class).
MpAudioSample * mAudioFrame
Wave buffer.
Definition: MpidOss.h:114
void freeBuffers()
Free internal OSS buffers.
OsStatus enableDevice(unsigned samplesPerFrame, unsigned samplesPerSec, MpFrameTime currentFrameTime)
Initialize device driver and state.
Definition: MpidOss.cpp:70
int16_t MpAudioSample
Definition: MpTypes.h:44
void skipFrame()
Add frame time to mCurrentFrameTime.
Definition: MpidOss.cpp:169
MpidOss(const UtlString &name, MpInputDeviceManager &deviceManager)
Default constructor.
Definition: MpidOss.cpp:45
~MpidOss()
Destructor.
Definition: MpidOss.cpp:62
UtlBoolean isDeviceValid()
Inquire if the device is valid.
Definition: MpOss.h:178
MpOssContainer * mpCont
Pointer to Wrapper container.
Definition: MpidOss.h:115
Definition: MpOssContainer.h:33
Wrapper for OSS device that use file descriptor to communicate.
Definition: MpOss.h:35
UtlBoolean isDeviceValid()
Inquire if the OSS device is valid.
Definition: MpidOss.h:146
MpOss * pDevWrapper
Definition: MpidOss.h:134