22 #ifndef TITANIC_MUSIC_ROOM_INSTRUMENT_H 23 #define TITANIC_MUSIC_ROOM_INSTRUMENT_H 25 #include "common/array.h" 26 #include "titanic/support/string.h" 30 enum MusicWaveInstrument { MV_PIANO = 0, MV_BASS = 1, MV_BELLS = 2, MV_SNAKE = 3 };
38 struct CInstrumentWaveFile {
41 CInstrumentWaveFile() : _waveFile(
nullptr), _value(0) {}
44 static bool _pianoToggle;
48 static double *_array;
49 static int _arrayIndex;
53 MusicWaveInstrument _instrument;
73 void setupArray(
int minVal,
int maxVal);
97 void load(
int index,
const CString &filename,
int v3);
125 void reset(uint total);
131 int read(int16 *ptr, uint size);
void setFilesCount(uint count)
int read(int16 *ptr, uint size)
void chooseWaveFile(int index, int freq)
Definition: game_object.h:79
Definition: sound_manager.h:42
Definition: project_item.h:84
void load(int index, const CString &filename, int v3)
Definition: wave_file.h:35
Definition: music_room_instrument.h:37