12 #include <semaphore.h> 15 #include <sys/types.h> 16 #include <sys/soundcard.h> 29 #define MAX_DEVICE_NAME_SIZE 256 70 unsigned samplesPerSec,
72 OsCallback &frameTicker);
78 OsStatus
pushFrame(
unsigned int numSamples,
149 #endif // _MpodAlsa_h_
MpodAlsa(const UtlString &name)
Default constructor.
Definition: MpodAlsa.cpp:43
UtlBoolean mNotificationThreadEn
Definition: MpodAlsa.h:116
static const char * getDefaultDeviceName()
Get the name of the default output ALSA PCM audio device.
Definition: MpodAlsa.cpp:235
UtlBoolean isDeviceValid()
Inquire if the device is valid.
Definition: MpAlsa.h:187
MpFrameTime mCurrentFrameTime
The current frame time for this device.
Definition: MpodAlsa.h:115
uint32_t MpFrameTime
Definition: MpTypes.h:53
Container for device specific input ALSA driver.
Definition: MpodAlsa.h:41
MpAlsa * pDevWrapper
Definition: MpodAlsa.h:128
Wrapper for ALSA device that use file descriptor to communicate.
Definition: MpAlsa.h:32
UtlBoolean isDeviceValid()
Inquire if the ALSA device is valid.
Definition: MpodAlsa.h:143
MpAudioSample * mAudioFrame
Wave buffer.
Definition: MpodAlsa.h:114
#define MAX_DEVICE_NAME_SIZE
Definition: MpodAlsa.h:29
static char spDefaultDeviceName[MAX_DEVICE_NAME_SIZE]
Definition: MpodAlsa.h:129
int16_t MpAudioSample
Definition: MpTypes.h:44
void skipFrame()
Adding frame time to mCurrentFrameTime.
Definition: MpodAlsa.cpp:348
OsStatus disableDevice()
Uninitialize device driver.
Definition: MpodAlsa.cpp:147
int mNullTickers
Definition: MpodAlsa.h:137
OsStatus setNotificationMode(UtlBoolean bThreadNotification)
Definition: MpodAlsa.cpp:71
OsStatus enableDevice(unsigned samplesPerFrame, unsigned samplesPerSec, MpFrameTime currentFrameTime, OsCallback &frameTicker)
Initialize device driver and state.
Definition: MpodAlsa.cpp:82
MpodAlsa & operator=(const MpodAlsa &rhs)
Assignment operator (not implemented for this class)
OsStatus signalForNextFrame()
Signaling for next frame if notificator used do nothing otherwise.
Definition: MpodAlsa.cpp:324
Container of output devices.
Definition: MpOutputDeviceManager.h:66
MpAlsaContainer * mpCont
Pointer to Wrapper container.
Definition: MpodAlsa.h:118
Definition: MpAlsaContainer.h:27
virtual OsStatus canEnable()
Check if this device can connect.
Definition: MpodAlsa.cpp:276
static int getDeviceNames(UtlContainer &devicesNames)
Get the list of names of the available output ALSA PCM audio device(s)
Definition: MpodAlsa.cpp:265
virtual ~MpodAlsa()
Destructor.
Definition: MpodAlsa.cpp:60
Container for device specific output driver.
Definition: MpOutputDeviceDriver.h:53
OsStatus pushFrame(unsigned int numSamples, const MpAudioSample *samples, MpFrameTime frameTime)
Send data to output device.
Definition: MpodAlsa.cpp:207