aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.h
diff options
context:
space:
mode:
authorTravis Howell2005-04-25 05:44:12 +0000
committerTravis Howell2005-04-25 05:44:12 +0000
commit93803048327377ed3a4f3966e7cf7719253a56ed (patch)
treebff7487f11f554aaca99739ee2335e1a3a70c593 /scumm/sound.h
parent8776150321abb1d7d5f6ceb512713583e53d605e (diff)
downloadscummvm-rg350-93803048327377ed3a4f3966e7cf7719253a56ed.tar.gz
scummvm-rg350-93803048327377ed3a4f3966e7cf7719253a56ed.tar.bz2
scummvm-rg350-93803048327377ed3a4f3966e7cf7719253a56ed.zip
Read index of music file in HE games at startup.
Only reliable way to always get correct music tracks. svn-id: r17798
Diffstat (limited to 'scumm/sound.h')
-rw-r--r--scumm/sound.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/scumm/sound.h b/scumm/sound.h
index 900250525f..89c4335c6d 100644
--- a/scumm/sound.h
+++ b/scumm/sound.h
@@ -83,6 +83,15 @@ protected:
int16 _currentCDSound;
int16 _currentMusic;
+
+ struct HEMusic{
+ int32 id;
+ int32 offset;
+ int32 size;
+ };
+ HEMusic *_heMusic;
+ int16 _heMusicTracks;
+
public:
SoundHandle _talkChannelHandle; // Handle of mixer channel actor is talking on
SoundHandle _heSoundChannels[8];
@@ -120,6 +129,7 @@ public:
void updateCD();
int getCurrentCDSound() const { return _currentCDSound; }
+ void setupHEMusicFile();
void getHEMusicDetails(int id, int &musicOffs, int &musicSize);
// Used by the save/load system: