22 #ifndef TITANIC_WAVE_FILE_H 23 #define TITANIC_WAVE_FILE_H 25 #include "audio/audiostream.h" 26 #include "audio/mixer.h" 27 #include "titanic/sound/audio_buffer.h" 28 #include "titanic/support/string.h" 29 #include "titanic/true_talk/dialogue_file.h" 33 enum LoadMode { LOADMODE_AUDIO_BUFFER = 1, LOADMODE_SCUMMVM = 2 };
55 void load(byte *data, uint dataSize);
66 DisposeAfterUse::Flag _disposeAudioBuffer;
82 uint
size()
const {
return _dataSize; }
108 return _waveData !=
nullptr || _pendingAudioStream !=
nullptr;
124 void unlock(
const int16 *ptr);
uint getFrequency() const
Definition: wave_file.h:114
uint getDurationTicks() const
void unlock(const int16 *ptr)
Definition: audio_buffer.h:32
bool loadSound(const CString &name)
Definition: audiostream.h:212
SoundType
Definition: mixer.h:62
Audio::SoundHandle play(int numLoops, byte volume)
bool isLoaded() const
Definition: wave_file.h:107
Definition: dialogue_file.h:51
Definition: wave_file.h:35
uint size() const
Definition: wave_file.h:82
bool loadSpeech(CDialogueFile *dialogueFile, int speechIndex)
bool loadMusic(const CString &name)