aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound/wave_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/sound/wave_file.h')
-rw-r--r--engines/titanic/sound/wave_file.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/titanic/sound/wave_file.h b/engines/titanic/sound/wave_file.h
index 2644b6807a..33b2a8dedf 100644
--- a/engines/titanic/sound/wave_file.h
+++ b/engines/titanic/sound/wave_file.h
@@ -38,19 +38,26 @@ enum SoundType {
};
class CWaveFile {
+private:
+ uint _size;
public:
QSoundManager *_owner;
Audio::AudioStream *_stream;
Audio::SoundHandle _soundHandle;
SoundType _soundType;
public:
- CWaveFile() : _owner(nullptr), _stream(nullptr), _soundType(SOUND_SFX) {}
- CWaveFile(QSoundManager *owner) : _owner(owner), _stream(nullptr), _soundType(SOUND_SFX) {}
+ CWaveFile();
+ CWaveFile(QSoundManager *owner);
~CWaveFile();
int fn1();
/**
+ * Return the size of the wave file
+ */
+ uint size() const { return _size; }
+
+ /**
* Tries to load the specified wave file sound
*/
bool loadSound(const CString &name);