22 #ifndef HOPKINS_SOUND_H 23 #define HOPKINS_SOUND_H 25 #include "common/scummsys.h" 26 #include "common/str.h" 27 #include "audio/mixer.h" 30 class RewindableAudioStream;
34 class SeekableReadStream;
41 VoiceItem() : _status(
false), _wavIndex(0) {}
49 SwavItem() : _active(
false), _audioStream(NULL), _freeSampleFl(
false) {}
73 #define SOUND_COUNT 10 82 int _currentSoundIndex;
96 bool checkVoiceStatus(
int voiceIndex);
97 bool loadVoice(
const Common::Path &filename,
size_t fileOffset,
size_t entryLength,
SwavItem &item);
98 void stopVoice(
int voiceIndex);
100 void delWav(
int wavIndex);
101 void checkVoiceActivity();
104 bool removeWavSample(
int wavIndex);
105 bool loadWavSample(
int wavIndex,
const Common::Path &filename,
bool freeSample);
106 void playWavSample(
int voiceIndex,
int wavIndex,
bool useVoiceVolume =
false);
107 bool isValidVoiceIndex(
int voiceIndex)
const;
108 bool isValidWavIndex(
int wavIndex)
const;
109 bool isValidSoundIndex(
int soundIndex)
const;
121 int _specialSoundNum;
126 void loadAnimSound();
127 void playAnimSound(
int animFrame);
129 bool loadSample(
int wavIndex,
const Common::Path &file);
130 void playSample(
int wavIndex,
int voiceMode = 9);
131 void removeSample(
int soundIndex);
133 void checkSoundEnd();
136 void playSound(
int soundNumber);
139 void updateScummVMSoundSettings();
140 void syncSoundSettings();
141 bool mixVoice(
int voiceId,
int voiceMode,
bool displTxtFl =
false);
143 void setMODMusicVolume(
int volume);
144 void setMODSampleVolume();
145 void setMODVoiceVolume();
148 void playWav(
int wavIndex);
Definition: algorithm.h:29
Definition: audiostream.h:109