aboutsummaryrefslogtreecommitdiff
path: root/engines/toltecs/sound.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/toltecs/sound.h')
-rw-r--r--engines/toltecs/sound.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/toltecs/sound.h b/engines/toltecs/sound.h
index 4e8db6d18d..48a6cd1318 100644
--- a/engines/toltecs/sound.h
+++ b/engines/toltecs/sound.h
@@ -42,6 +42,8 @@ enum SoundChannelType {
struct SoundChannel {
int16 resIndex;
int16 type;
+ int16 volume;
+ int16 panning;
Audio::SoundHandle handle;
};
@@ -60,13 +62,14 @@ public:
void stopAll();
void saveState(Common::WriteStream *out);
- void loadState(Common::ReadStream *in);
+ void loadState(Common::ReadStream *in, int version);
protected:
ToltecsEngine *_vm;
SoundChannel channels[kMaxChannels];
+ void clearChannel(int channel);
void internalPlaySound(int16 resIndex, int16 type, int16 volume, int16 panning);
Audio::Mixer::SoundType getScummVMSoundType(SoundChannelType type) const;
};