22 #ifndef MADS_CORE_SOUND_MANAGER_H 23 #define MADS_CORE_SOUND_MANAGER_H 25 #include "common/array.h" 26 #include "common/file.h" 27 #include "common/mutex.h" 28 #include "common/queue.h" 56 virtual int command(
int commandId,
int param) = 0;
61 virtual int stop() = 0;
73 virtual void noise() = 0;
78 virtual void setVolume(
int volume) = 0;
87 bool _pollSoundEnabled =
false;
88 bool _soundPollFlag =
false;
89 bool _newSoundsPaused =
false;
91 int _masterVolume = 255;
98 virtual void loadDriver(
int sectionNum) = 0;
104 virtual void validate() = 0;
111 void init(
int sectionNumber);
127 void setEnabled(
bool flag);
132 void pauseNewCommands();
137 void startQueuedCommands();
142 void setVolume(
int volume);
150 int command(
int commandId,
int param = 0);
Definition: sound_manager.h:81
virtual int poll()
Definition: sound_manager.h:66
Definition: sound_manager.h:40
Definition: sound_manager.h:38