aboutsummaryrefslogtreecommitdiff
path: root/engines/hopkins/sound.h
diff options
context:
space:
mode:
authorPaul Gilbert2012-11-12 20:09:29 +1100
committerPaul Gilbert2012-11-12 20:09:29 +1100
commitff9dc4ab248e47c15076dd822b635927f7b27161 (patch)
treedc4677fe35e91c9e51565c237da850257c6715a1 /engines/hopkins/sound.h
parent66ef127280debf3586ee1074b50fa193eb03d81e (diff)
downloadscummvm-rg350-ff9dc4ab248e47c15076dd822b635927f7b27161.tar.gz
scummvm-rg350-ff9dc4ab248e47c15076dd822b635927f7b27161.tar.bz2
scummvm-rg350-ff9dc4ab248e47c15076dd822b635927f7b27161.zip
HOPKINS: Bugfix for freeze when looking at the cat when voices are turned on.
Diffstat (limited to 'engines/hopkins/sound.h')
-rw-r--r--engines/hopkins/sound.h19
1 files changed, 13 insertions, 6 deletions
diff --git a/engines/hopkins/sound.h b/engines/hopkins/sound.h
index 88cecbbea7..36184715ba 100644
--- a/engines/hopkins/sound.h
+++ b/engines/hopkins/sound.h
@@ -35,7 +35,6 @@ class VoiceItem {
public:
int _status;
int _wavIndex;
- Audio::RewindableAudioStream *_audioStream;
int fieldC;
int field14;
};
@@ -96,6 +95,18 @@ private:
void PLAY_SAMPLE_SDL(int voiceIndex, int wavIndex);
void LOAD_MSAMPLE(int mwavIndex, const Common::String &file);
void DEL_MSAMPLE(int mwavIndex);
+
+ /**
+ * Checks the music structure to see if music playback is active, and whether
+ * it needs to move to the next WAV file
+ */
+ void checkMusic();
+
+ /**
+ * Checks voices to see if they're finished
+ */
+ void checkVoices();
+
public:
int SPECIAL_SOUND;
int SOUNDVOL;
@@ -137,11 +148,6 @@ public:
void STOP_MUSIC();
void DEL_MUSIC();
- /**
- * Checks the music structure to see if music playback is active, and whether
- * it needs to move to the next WAV file
- */
- void checkMusic();
bool VOICE_MIX(int voiceId, int voiceMode);
void DEL_SAMPLE(int soundIndex);
@@ -156,6 +162,7 @@ public:
void syncSoundSettings();
void updateScummVMSoundSettings();
+ void checkSounds();
};
} // End of namespace Hopkins