23 #ifndef M4_PLATFORM_SOUND_DIGI_H 24 #define M4_PLATFORM_SOUND_DIGI_H 26 #include "audio/mixer.h" 27 #include "audio/audiostream.h" 28 #include "common/hashmap.h" 29 #include "m4/m4_types.h" 34 #define MAX_CHANNELS 4 45 byte *_data =
nullptr;
47 bool _isFootsteps =
false;
50 _filename(name), _data(data), _size(size) {}
64 int _panningTodoRoom = 0;
66 int32 play(
const Common::String &name, uint channel, int32 vol, int32 trigger,
67 int32 room_num,
bool loop);
95 int32 play(
const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num = -1);
96 int32 play_loop(
const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num = -1);
98 void stop(uint channel,
bool calledFromUnload =
false);
101 void read_another_chunk();
102 bool play_state(
int channel)
const;
103 void change_volume(
int channel,
int vol);
105 void set_overall_volume(
int vol);
106 int get_overall_volume();
107 int32 ticks_to_play(
const char *name,
int roomNum = -1);
108 void change_panning(
int val1,
int val2);
115 int32 digi_play(
const char *name, uint channel, int32 vol = 255,
116 int32 trigger = -1, int32 room_num = -1);
117 int32 digi_play_loop(
const char *name, uint channel, int32 vol = 255,
118 int32 trigger = -1, int32 room_num = -1);
119 void digi_read_another_chunk();
120 void digi_stop(
int channel);
121 bool digi_play_state(
int channel);
122 void digi_change_volume(
int channel,
int vol);
123 void digi_set_overall_volume(
int vol);
124 int digi_get_overall_volume();
125 int32 digi_ticks_to_play(
const char *name,
int roomNum = -1);
126 void digi_change_panning(
int val1,
int val2);
bool preload(const Common::String &name, bool isFootsteps, int roomNum=-1)
Definition: database.h:28
void loadFootstepSounds(const char **names)