aboutsummaryrefslogtreecommitdiff
path: root/scumm/sound.h
diff options
context:
space:
mode:
authorTravis Howell2004-08-09 01:07:48 +0000
committerTravis Howell2004-08-09 01:07:48 +0000
commitd63d23ed077eb958e3dbdb6d760fe4b75af258de (patch)
tree6bb2b8d1f7dae14fbbfc5a6cff0d8d8de93dd22c /scumm/sound.h
parentdc476abe6021806a8cc30935c91ffabb8e766829 (diff)
downloadscummvm-rg350-d63d23ed077eb958e3dbdb6d760fe4b75af258de.tar.gz
scummvm-rg350-d63d23ed077eb958e3dbdb6d760fe4b75af258de.tar.bz2
scummvm-rg350-d63d23ed077eb958e3dbdb6d760fe4b75af258de.zip
Add patch #999887 - Possible fix for bug #998276
Also saves _currentMusic svn-id: r14525
Diffstat (limited to 'scumm/sound.h')
-rw-r--r--scumm/sound.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/sound.h b/scumm/sound.h
index b354ac255c..d426e9c625 100644
--- a/scumm/sound.h
+++ b/scumm/sound.h
@@ -32,6 +32,7 @@ class ScummEngine;
class ScummFile;
struct MP3OffsetTable;
+struct SaveLoadEntry;
enum {
kTalkSoundID = 10000
@@ -72,8 +73,8 @@ protected:
int _overrideFreq;
- int _currentCDSound;
- int _currentMusic;
+ int16 _currentCDSound;
+ int16 _currentMusic;
public:
PlayingSoundHandle _talkChannelHandle; // Handle of mixer channel actor is talking on
PlayingSoundHandle _musicChannelHandle; // Handle of mixer channel music is on
@@ -110,6 +111,9 @@ public:
void updateCD();
int getCurrentCDSound() const { return _currentCDSound; }
+ // Used by the save/load system:
+ const SaveLoadEntry *getSaveLoadEntries();
+
protected:
ScummFile *openSfxFile();
void startSfxSound(File *file, int file_size, PlayingSoundHandle *handle, int id = -1);