diff options
author | Paul Gilbert | 2016-08-12 07:46:35 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-12 07:46:35 -0400 |
commit | bf4562ba4f8befe9f985c464e9a5094e3e6f255d (patch) | |
tree | 9f0675fd6998656f34345f0c1bf05ca6835c63b3 /engines/titanic/sound/sound.h | |
parent | 31f344079ff6b66f933becd6602e446d94717a4d (diff) | |
download | scummvm-rg350-bf4562ba4f8befe9f985c464e9a5094e3e6f255d.tar.gz scummvm-rg350-bf4562ba4f8befe9f985c464e9a5094e3e6f255d.tar.bz2 scummvm-rg350-bf4562ba4f8befe9f985c464e9a5094e3e6f255d.zip |
TITANIC: Further fleshing out sound manager, fixing sound looping
Diffstat (limited to 'engines/titanic/sound/sound.h')
-rw-r--r-- | engines/titanic/sound/sound.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/engines/titanic/sound/sound.h b/engines/titanic/sound/sound.h index b6c77e76b2..de95f9edf1 100644 --- a/engines/titanic/sound/sound.h +++ b/engines/titanic/sound/sound.h @@ -41,15 +41,15 @@ public: CWaveFile *_waveFile; File *_dialogueFileHandle; int _speechId; - int _field24; - int _field28; + bool _freeFlag; + bool _active; public: CSoundItem() : ListItem(), _waveFile(nullptr), _dialogueFileHandle(nullptr), - _speechId(0), _field24(0), _field28(0) {} + _speechId(0), _freeFlag(false), _active(false) {} CSoundItem(const CString &name) : ListItem(), _name(name), _waveFile(nullptr), - _dialogueFileHandle(nullptr), _speechId(0), _field24(0), _field28(0) {} + _dialogueFileHandle(nullptr), _speechId(0), _freeFlag(false), _active(false) {} CSoundItem(File *dialogueFile, int speechId) : ListItem(), _waveFile(nullptr), - _dialogueFileHandle(dialogueFile), _speechId(speechId), _field24(0), _field28(0) {} + _dialogueFileHandle(dialogueFile), _speechId(speechId), _freeFlag(false), _active(false) {} }; class CSoundItemList : public List<CSoundItem> { @@ -123,7 +123,10 @@ public: */ void setVolume(uint handle, uint volume, uint seconds); - void fn4(CWaveFile *waveFile, int val); + /** + * Flags a sound about to be played as activated + */ + void activateSound(CWaveFile *waveFile, bool freeFlag); /** * Stops any sounds attached to a given channel |