10#ifndef __SNDWRAPOSS_H__
11#define __SNDWRAPOSS_H__
13#include "SndWrapLinux.h"
27 static void CreateInstance(
const eC_String& kDevicePath =
"/dev/dsp",
const eC_UInt uiStackSize = 100,
const ThreadPriority_t kThreadPriority = GUITHREAD_PRIORITY_NOT_SET);
38 CSndWrapOSS(
const eC_String& kDevicePath,
const eC_UInt uiStackSize,
const ThreadPriority_t kThreadPriority);
41 eC_String m_kDevicePath;
56 CPlayThread(
const eC_String& kDevicePath,
const eC_UInt uiStackSize,
const ThreadPriority_t kThreadPriority);
64 void Play(
const CSound& kSound);
79 void Execute(
void *pArg);
81 eC_String m_kDevicePath;
SoundResource_t
List of sound resource ids.
Definition: GUISoundResource.h:48
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
OSS implementation of the Sound Wrapper.
Definition: SndWrapOSS.h:20
CSndWrapOSS(const eC_String &kDevicePath, const eC_UInt uiStackSize, const ThreadPriority_t kThreadPriority)
static void CreateInstance(const eC_String &kDevicePath="/dev/dsp", const eC_UInt uiStackSize=100, const ThreadPriority_t kThreadPriority=GUITHREAD_PRIORITY_NOT_SET)
void UnloadSnd(const SoundResource_t &eID)
eC_Bool SetVolume(eC_UByte ubVolume=0xff)