25 #include "audio/audiostream.h" 26 #include "audio/mixer.h" 27 #include "agos/intern.h" 28 #include "common/str.h" 51 uint16 _lastVoiceFile;
60 uint16 _ambientPlaying;
64 uint16 _soundQueueNum;
65 uint32 _soundQueueSize;
66 uint16 _soundQueueFreq;
72 TYPE_AMBIENT = 1 << 0,
83 void loadSfxTable(
const char *gameFilename, uint32 base);
86 void playVoice(uint sound);
87 void playEffects(uint sound);
88 void playAmbient(uint sound);
91 void handleSoundQueue();
92 void queueSound(byte *ptr, uint16 sound, uint32 size, uint16 freq);
95 void playRawData(byte *soundData, uint sound, uint size, uint freq);
98 void playAmbientData(byte *soundData, uint sound, uint pan, uint vol);
99 void playSfxData(byte *soundData, uint sound, uint pan, uint vol);
100 void playSfx5Data(byte *soundData, uint sound, uint pan, uint vol);
101 void playSoundData(
Audio::SoundHandle *handle, byte *soundData, uint sound,
int pan = 0,
int vol = 0,
bool loop =
false);
102 void playVoiceData(byte *soundData, uint sound);
105 bool hasVoice()
const;
106 bool isSfxActive()
const;
107 bool isVoiceActive()
const;
113 void effectsMute(
bool mute, uint16 effectsVolume);
114 void ambientMute(
bool mute, uint16 effectsVolume);
Definition: algorithm.h:29