diff options
author | Paul Gilbert | 2016-08-10 22:39:40 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-10 22:39:40 -0400 |
commit | 2b486009f51bf386be3c9d97c22b7b17b0e898e8 (patch) | |
tree | d4cfc901d98b76ba955c41e442d45267e2a28666 /engines/titanic/sound/music_wave.h | |
parent | 223aaaa185489fb39c3e163840efd7d2160c24aa (diff) | |
download | scummvm-rg350-2b486009f51bf386be3c9d97c22b7b17b0e898e8.tar.gz scummvm-rg350-2b486009f51bf386be3c9d97c22b7b17b0e898e8.tar.bz2 scummvm-rg350-2b486009f51bf386be3c9d97c22b7b17b0e898e8.zip |
TITANIC: Beginnings of music handler
Diffstat (limited to 'engines/titanic/sound/music_wave.h')
-rw-r--r-- | engines/titanic/sound/music_wave.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/engines/titanic/sound/music_wave.h b/engines/titanic/sound/music_wave.h index d40b2ce74d..dcdd3615fb 100644 --- a/engines/titanic/sound/music_wave.h +++ b/engines/titanic/sound/music_wave.h @@ -23,18 +23,41 @@ #ifndef TITANIC_MUSIC_WAVE_H #define TITANIC_MUSIC_WAVE_H +#include "common/array.h" #include "titanic/support/string.h" namespace Titanic { class CProjectItem; class CSoundManager; +class CWaveFile; class CMusicWave { + struct CMusicWaveFile { + CWaveFile *_waveFile; + int _value; + CMusicWaveFile() : _waveFile(nullptr), _value(0) {} + }; private: + CProjectItem *_project; + CSoundManager *_soundManager; + Common::Array<CMusicWaveFile> _items; +private: + /** + * Loads the specified wave file, and returns a CWaveFile instance for it + */ + CWaveFile *createWaveFile(const CString &name); public: CMusicWave(CProjectItem *project, CSoundManager *soundManager, int index); + /** + * Sets the maximum number of allowed files that be defined + */ + void setSize(uint count); + + /** + * Loads a new file into the list of available entries + */ void load(int index, const CString &filename, int v3); }; |