aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/qmixer.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/sound/qmixer.h')
-rw-r--r--engines/titanic/sound/qmixer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/titanic/sound/qmixer.h b/engines/titanic/sound/qmixer.h
index 4ba76a8969..6a25484c29 100644
--- a/engines/titanic/sound/qmixer.h
+++ b/engines/titanic/sound/qmixer.h
@@ -186,7 +186,20 @@ class QMixer {
_started(false), _waveFile(waveFile), _callback(callback), _loops(loops), _userData(userData) {}
};
struct ChannelEntry {
+ // Currently playing and any following queued sounds for the channel
Common::List<SoundEntry> _sounds;
+ // Current channel volume
+ byte _volume;
+ // Current time in milliseconds for paning (volume) changes
+ uint _panRate;
+ // Fields used to transition between volume levels
+ uint _volumeChangeStart;
+ uint _volumeChangeEnd;
+ byte _volumeStart;
+ byte _volumeEnd;
+
+ ChannelEntry() : _volume(0), _panRate(0), _volumeChangeStart(0),
+ _volumeChangeEnd(0), _volumeStart(0), _volumeEnd(0) {}
};
private:
Audio::Mixer *_mixer;