ALSA implementation of the Sound Wrapper. More...
#include <SndWrapALSA.h>
Public Member Functions | |
eC_UByte | GetVolume () |
eC_Bool | SetVolume (eC_UByte ubVolume=0xff) |
![]() | |
virtual eC_UByte | GetVolume ()=0 |
virtual eC_Bool | IsSoundPlaying (const SoundResource_t &eID) |
virtual void | LoadSnd (const eC_String &pkPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0) |
virtual eC_Bool | PauseSnd (const SoundResource_t &eID) |
virtual eC_Bool | PlaySnd (const SoundResource_t &eID, eC_UInt Flags=PLAY_ASYNC) |
virtual eC_Bool | ResumeSnd (const SoundResource_t &eID) |
virtual eC_Bool | SetVolume (eC_UByte ubVolume=0xff)=0 |
virtual eC_Bool | StopSnd (const SoundResource_t &eID) |
virtual void | UnloadSnd (const SoundResource_t &eID) |
![]() | |
virtual eC_UInt | GetNOFSounds () |
virtual eC_UByte | GetVolume ()=0 |
virtual eC_Bool | PauseSnd (const SoundResource_t &eID)=0 |
virtual eC_Bool | PlaySnd (const SoundResource_t &eID, eC_UInt uiFlags=2)=0 |
virtual eC_Bool | ResumeSnd (const SoundResource_t &eID)=0 |
virtual eC_Bool | SetVolume (eC_UByte ubVolume)=0 |
virtual eC_Bool | StopSnd (const SoundResource_t &eID)=0 |
Static Public Member Functions | |
static void | CreateInstance (const eC_UInt uiNOFPeriods=2, const eC_UInt uiStackSize=100, const ThreadPriority_t kThreadPriority=GUITHREAD_PRIORITY_NOT_SET) |
![]() | |
static void | DeleteInstance () |
Deletes the Sound-Wrapper instance. | |
Protected Member Functions | |
CSndWrapALSA (const eC_UInt uiNOFPeriods, const eC_UInt uiStackSize, const ThreadPriority_t kThreadPriority) | |
![]() | |
CSndWrapWAVBase () | |
Constructor. | |
virtual | ~CSndWrapWAVBase () |
Destructor. | |
![]() | |
CSndWrap () | |
Constructor. | |
CSndWrap (const CSndWrap &kSource) | |
virtual | ~CSndWrap () |
Destructor. | |
virtual void | LoadSnd (const eC_String &kPath, const SoundResource_t &eID, eC_UInt uiDeviceID=0)=0 |
CSndWrap & | operator= (const CSndWrap &kSource) |
virtual eC_Bool | SetNOFSounds (eC_UInt uiNOFSounds) |
virtual void | UnloadSnd (const SoundResource_t &eID)=0 |
Additional Inherited Members | |
![]() | |
eC_TArray< CSound > | m_aSoundFiles |
The list of the loaded soundfiles. | |
CPlayThreadBase * | m_pPlayThread |
The play thread. | |
![]() | |
eC_UInt | m_uiNOFSounds |
total number of sound-objects. | |
ALSA implementation of the Sound Wrapper.
This sound wrapper uses the ALSA API for audio playback. Please note SndWrapALSA can only playback one sound at a time.
SndWrapALSA can only playback one sound at a time. Simultaneous playback of several sounds is not possible. (Class CSndWrapALSA)
|
protected |
Constructor
uiNOFPeriods | The number of periods to set. |
uiStackSize | The play sound thread stack size. |
kThreadPriority | The play sound thread priority. |
|
static |
Creates the ALSA sound wrapper instance.
uiNOFPeriods | The number of periods to set. |
uiStackSize | The play sound thread stack size. |
kThreadPriority | The play sound thread priority. |
|
virtual |
Method to get the volume of an output device. The volume has to be implemented in percent. The range is from 0 till 100.
Implements CSndWrapWAVBase.
|
virtual |
Method to set the volume of an output device. The volume has to be implemented in percent. The range is from 0 till 100.
ubVolume | to set in percent. |
Implements CSndWrapWAVBase.