10#ifndef __SNDWRAPALSA_H__
11#define __SNDWRAPALSA_H__
13#include "SndWrapLinux.h"
15#define ALSA_PCM_NEW_HW_PARAMS_API
16#include <alsa/asoundlib.h>
42 static void CreateInstance(
const eC_UInt uiNOFPeriods = 2,
const eC_UInt uiStackSize = 100,
const ThreadPriority_t kThreadPriority = GUITHREAD_PRIORITY_NOT_SET);
52 CSndWrapALSA(
const eC_UInt uiNOFPeriods,
const eC_UInt uiStackSize,
const ThreadPriority_t kThreadPriority);
68 CPlayThread(
const eC_UInt uiNOFPeriods,
const eC_UInt uiStackSize,
const ThreadPriority_t kThreadPriority);
76 void Play(
const CSound& kSound);
91 void Execute(
void *pArg);
95 snd_pcm_t* m_pPCMHandle;
96 eC_UInt m_uiNOFPeriods;
105 eC_Bool PrepareMixerElement(snd_mixer_t* pkHandle, snd_mixer_elem_t*& pkMixerElement,
long& lMin,
long& lMax);
ALSA implementation of the Sound Wrapper.
Definition: SndWrapALSA.h:35
static void CreateInstance(const eC_UInt uiNOFPeriods=2, const eC_UInt uiStackSize=100, const ThreadPriority_t kThreadPriority=GUITHREAD_PRIORITY_NOT_SET)
eC_Bool SetVolume(eC_UByte ubVolume=0xff)
CSndWrapALSA(const eC_UInt uiNOFPeriods, const eC_UInt uiStackSize, const ThreadPriority_t kThreadPriority)
This class handles the playing of sound files.
Definition: SndWrapLinux.h:162
This class represents a sound file with filepointer, WAVE header and Sound Resource ID.
Definition: SndWrapLinux.h:52
This class is the base implementation for playing WAV files using low-level interfaces.
Definition: SndWrapLinux.h:24