32 #include "audio/audiostream.h" 33 #include "audio/mixer.h" 34 #include "toon/toon.h" 46 void stop(
bool fade =
false);
55 return _fadingIn || _fadingOut;
58 int32 getPlayedSampleCount() {
59 return _playedSamples;
62 void setVolume(int32 volume);
64 int readBuffer(int16 *buffer,
const int numSamples)
override;
74 void handleFade(int32 numSamples);
78 void decodeADPCM(uint8 *comp, int16 *dest, int32 packetSize);
89 int32 _compBufferSize;
98 int32 _currentReadSize;
101 int32 _musicAttenuation;
102 bool _deleteFileStream;
103 int32 _playedSamples;
113 void getInfo(int32
id, int32 *offset, int32 *size);
117 uint32 *_indexBuffer;
138 bool voiceStillPlaying();
141 void playVoice(int32
id,
bool genericVoice);
142 int32 playSFX(int32
id,
int volume,
bool genericSFX);
143 void stopCurrentVoice();
145 void setMusicVolume(uint8 volume);
146 void stopMusicChannel(
int channelId,
bool fade);
147 void stopMusic(
bool fade =
true);
148 void muteVoice(
bool mute);
149 void muteMusic(
bool mute);
150 void muteSfx(
bool mute);
151 bool isVoiceMuted()
const {
return _voiceMuted; }
152 bool isMusicMuted()
const {
return _musicMuted; }
153 bool isSfxMuted()
const {
return _sfxMuted; }
155 void startAmbientSFX(int32
id, int32 delay, int32 mode, int32 volume);
156 void killAmbientSFX(int32
id);
157 void killAllAmbientSFX();
158 void updateAmbientSFX();
159 void setAmbientSFXVolume(int32
id,
int volume);
161 void closeAudioPack(int32
id);
173 int _currentMusicChannel;
bool endOfData() const override
Definition: audio.h:71
int readBuffer(int16 *buffer, const int numSamples) override
int getRate() const override
Definition: audio.h:68
SoundType
Definition: mixer.h:62
Definition: audiostream.h:50
bool isStereo() const override
Definition: audio.h:65