22 #ifndef TITANIC_MUSIC_ROOM_HANDLER_H 23 #define TITANIC_MUSIC_ROOM_HANDLER_H 25 #include "titanic/sound/audio_buffer.h" 26 #include "titanic/sound/music_room_instrument.h" 27 #include "titanic/sound/music_song.h" 28 #include "titanic/sound/wave_file.h" 35 enum MusicInstrument { BELLS = 0, SNAKE = 1, PIANO = 2, BASS = 3 };
40 bool _directionControl;
41 bool _inversionControl;
44 _inversionControl(
false), _muteControl(
false) {}
57 double _animExpiryTime[4];
62 int _instrumentsActive;
65 uint _soundStartTicks;
82 void updateInstruments();
89 bool pollInstrument(MusicInstrument instrument);
96 double getAnimDuration(MusicInstrument instrument,
int arrIndex);
102 int getPitch(MusicInstrument instrument,
int arrIndex);
118 void setup(
int volume);
133 bool checkInstrument(MusicInstrument instrument)
const;
138 void setSpeedControl2(MusicInstrument instrument,
int value);
143 void setPitchControl2(MusicInstrument instrument,
int value);
148 void setInversionControl2(MusicInstrument instrument,
bool value);
153 void setDirectionControl2(MusicInstrument instrument,
bool value);
158 void setPitchControl(MusicInstrument instrument,
int value);
163 void setSpeedControl(MusicInstrument instrument,
int value);
168 void setDirectionControl(MusicInstrument instrument,
bool value);
173 void setInversionControl(MusicInstrument instrument,
bool value);
178 void setMuteControl(MusicInstrument instrument,
bool value);
void setActive(bool flag)
Definition: music_room_handler.h:123
Definition: music_room_handler.h:47
Definition: audio_buffer.h:32
Definition: music_song.h:36
Definition: sound_manager.h:42
Definition: project_item.h:84
Definition: music_room_handler.h:37
Definition: wave_file.h:35
Definition: music_room_instrument.h:37