class Sounder

Manages the sound playing

Public Methods

Sounder(int _sampleRate, int _nbChannel, const String& _pathDsp) throw()
virtual ~Sounder() throw()
virtual int add(const String& nameFile, bool ecrasable=true) throw(Exception)
virtual int add(List< const String * >& nameFile, bool ecrasable=true) throw(Exception)
ecrasable=false forbids the sound to be removed when too many sounds are playing and another is added
virtual void suppr(int id) throw()
virtual int play(int id) throw()
When too many sounds are already playing, removes the oldest (if not "ecrasable")
virtual void setVolume(int id, int volume) throw()
Does not work well

Protected Classes

class CorrespCouple
const int id
List < int > * const l
CorrespCouple(int _id, List *_l)
class Couple
const int id
Couple(int _id, int _data)

Protected Fields

List < Couple * > timeFile
int nbChannel
int lruChannel
bool ok
const int sampleRate
int cptCorresp
List < CorrespCouple * > corresp

Documentation

Manages the sound playing. Use it by loading a sound and playing it with the id returns. Thanks to Brad Pitzel for "soundIt" ! Uses soundHim.c
class CorrespCouple

const int id

List < int > * const l

CorrespCouple(int _id, List *_l)

class Couple

const int id

Couple(int _id, int _data)

List < Couple * > timeFile

int nbChannel

int lruChannel

bool ok

const int sampleRate

int cptCorresp

List < CorrespCouple * > corresp

Sounder(int _sampleRate, int _nbChannel, const String& _pathDsp) throw()

virtual ~Sounder() throw()

virtual int add(const String& nameFile, bool ecrasable=true) throw(Exception)

virtual int add(List< const String * >& nameFile, bool ecrasable=true) throw(Exception)
ecrasable=false forbids the sound to be removed when too many sounds are playing and another is added

virtual void suppr(int id) throw()

virtual int play(int id) throw()
When too many sounds are already playing, removes the oldest (if not "ecrasable")

virtual void setVolume(int id, int volume) throw()
Does not work well


This class has no child classes.
Author:
David FAUTHOUX

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de