15 #include <semaphore.h> 18 #include <sys/types.h> 19 #include <sys/soundcard.h> 70 unsigned samplesPerSec,
72 OsCallback &frameTicker);
78 OsStatus
pushFrame(
unsigned int numSamples,
140 #endif // _MpodOss_h_
OsStatus enableDevice(unsigned samplesPerFrame, unsigned samplesPerSec, MpFrameTime currentFrameTime, OsCallback &frameTicker)
Initialize device driver and state.
Definition: MpodOss.cpp:83
~MpodOss()
Destructor.
Definition: MpodOss.cpp:61
uint32_t MpFrameTime
Definition: MpTypes.h:53
MpAudioSample * mAudioFrame
Wave buffer.
Definition: MpodOss.h:107
OsStatus pushFrame(unsigned int numSamples, const MpAudioSample *samples, MpFrameTime frameTime)
Send data to output device.
Definition: MpodOss.cpp:167
Container for device specific input OSS driver.
Definition: MpodOss.h:41
MpFrameTime mCurrentFrameTime
The current frame time for this device.
Definition: MpodOss.h:108
MpOss * pDevWrapper
Definition: MpodOss.h:121
OsStatus signalForNextFrame()
Signaling for next frame if notificator used do nothing otherwise.
Definition: MpodOss.cpp:217
void skipFrame()
Adding frame time to mCurrentFrameTime.
Definition: MpodOss.cpp:225
UtlBoolean isDeviceValid()
Inquire if the OSS device is valid.
Definition: MpodOss.h:134
int16_t MpAudioSample
Definition: MpTypes.h:44
MpodOss(const UtlString &name)
Default constructor.
Definition: MpodOss.cpp:45
UtlBoolean isDeviceValid()
Inquire if the device is valid.
Definition: MpOss.h:178
MpodOss & operator=(const MpodOss &rhs)
Assignment operator (not implemented for this class)
OsStatus disableDevice()
Uninitialize device driver.
Definition: MpodOss.cpp:140
Container of output devices.
Definition: MpOutputDeviceManager.h:66
Definition: MpOssContainer.h:33
virtual OsStatus canEnable()
Check if this device can connect.
Definition: MpodOss.cpp:197
Wrapper for OSS device that use file descriptor to communicate.
Definition: MpOss.h:35
UtlBoolean mNotificationThreadEn
Definition: MpodOss.h:109
OsStatus setNotificationMode(UtlBoolean bThreadNotification)
Definition: MpodOss.cpp:72
Container for device specific output driver.
Definition: MpOutputDeviceDriver.h:53
MpOssContainer * mpCont
Pointer to Wrapper container.
Definition: MpodOss.h:111