28 #ifndef GOB_SOUND_SOUNDMIXER_H 29 #define GOB_SOUND_SOUNDMIXER_H 31 #include "common/mutex.h" 32 #include "common/frac.h" 33 #include "audio/audiostream.h" 34 #include "audio/mixer.h" 45 virtual void play(
SoundDesc &sndDesc, int16 repCount,
46 int16 frequency, int16 fadeLength = 0);
47 virtual void stop(int16 fadeLength);
49 bool isPlaying()
const;
50 char getPlayingSound()
const;
52 void setRepeating(int32 repCount);
54 int readBuffer(int16 *buffer,
const int numSamples)
override;
55 bool isStereo()
const override {
return false; }
58 int getRate()
const override {
return _rate; }
87 uint32 _curFadeSamples;
91 virtual void setSample(
SoundDesc &sndDesc, int16 repCount,
92 int16 frequency, int16 fadeLength);
93 virtual void checkEndSample();
94 virtual void endFade();
97 inline int16 getData(
int offset);
102 #endif // GOB_SOUND_SOUNDMIXER_H bool endOfData() const override
Definition: soundmixer.h:56
bool endOfStream() const override
Definition: soundmixer.h:57
SoundType
Definition: mixer.h:62
int getRate() const override
Definition: soundmixer.h:58
Definition: audiostream.h:50
Definition: sounddesc.h:43
bool isStereo() const override
Definition: soundmixer.h:55
int readBuffer(int16 *buffer, const int numSamples) override
Definition: soundmixer.h:40
int32 frac_t
Definition: frac.h:52