22 #ifndef MADS_CORE_SOUND_MANAGER_H 23 #define MADS_CORE_SOUND_MANAGER_H 25 #include "common/array.h" 26 #include "common/memstream.h" 27 #include "common/mutex.h" 28 #include "common/queue.h" 40 #define CALLBACKS_PER_SECOND 60 58 int dataOffset,
int dataSize);
67 virtual int command(
int commandId,
int param) = 0;
72 virtual int stop() = 0;
77 virtual int poll() = 0;
82 virtual void noise() = 0;
87 virtual void setVolume(
int volume) = 0;
96 bool _pollSoundEnabled =
false;
97 bool _soundPollFlag =
false;
98 bool _newSoundsPaused =
false;
100 int _masterVolume = 255;
107 virtual void loadDriver(
int sectionNum) = 0;
113 virtual void validate() = 0;
120 void init(
int sectionNumber);
126 return _driver !=
nullptr;
143 void setEnabled(
bool flag);
148 void pauseNewCommands();
153 void startQueuedCommands();
158 void setVolume(
int volume);
166 int command(
int commandId,
int param = 0);
bool isLoaded() const
Definition: sound_manager.h:125
Common::MemoryReadStream getDataStream(int offset) const
Definition: sound_manager.h:52
Definition: sound_manager.h:90
size_type size() const
Definition: array.h:316
Definition: memstream.h:43
Definition: sound_manager.h:42
Definition: mps_installer.h:31