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 void loadWavSample(
int wavIndex,
const Common::Path &filename,
bool freeSample);
106 void playWavSample(
int voiceIndex,
int wavIndex);
118 int _specialSoundNum;
123 void loadAnimSound();
124 void playAnimSound(
int animFrame);
126 void loadSample(
int wavIndex,
const Common::Path &file);
127 void playSample(
int wavIndex,
int voiceMode = 9);
128 void removeSample(
int soundIndex);
130 void checkSoundEnd();
133 void playSound(
int soundNumber);
136 void updateScummVMSoundSettings();
137 void syncSoundSettings();
138 bool mixVoice(
int voiceId,
int voiceMode,
bool displTxtFl =
false);
140 void setMODMusicVolume(
int volume);
141 void setMODSampleVolume();
142 void setMODVoiceVolume();
145 void playWav(
int wavIndex);
Definition: algorithm.h:29
Definition: audiostream.h:109