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;
65 uint16 _soundQueueNum;
66 uint32 _soundQueueSize;
67 uint16 _soundQueueFreq;
73 TYPE_AMBIENT = 1 << 0,
84 void loadSfxTable(
const char *gameFilename, uint32 base);
87 void playVoice(uint sound);
88 void playEffects(uint sound);
89 void playAmbient(uint sound);
92 void handleSoundQueue();
93 void queueSound(byte *ptr, uint16 sound, uint32 size, uint16 freq);
96 void playRawData(byte *soundData, uint sound, uint size, uint freq);
99 void playAmbientData(byte *soundData, uint sound, uint pan, uint vol);
100 void playSfxData(byte *soundData, uint sound, uint pan, uint vol);
101 void playSfx5Data(byte *soundData, uint sound, uint pan, uint vol);
102 void playSoundData(
Audio::SoundHandle *handle, byte *soundData, uint sound,
int pan = 0,
int vol = 0,
bool loop =
false);
103 void playVoiceData(byte *soundData, uint sound);
106 bool hasVoice()
const;
107 bool isSfxActive()
const;
108 bool isVoiceActive()
const;
109 uint getCurrentVoice()
const {
return _voicePlaying; }
115 void effectsMute(
bool mute, uint16 effectsVolume);
116 void ambientMute(
bool mute, uint16 effectsVolume);
Definition: algorithm.h:29