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) {}
65 int32 play(
const Common::String &name, uint channel, int32 vol, int32 trigger,
66 int32 room_num,
bool loop);
94 int32 play(
const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num = -1);
95 int32 play_loop(
const Common::String &name, uint channel, int32 vol, int32 trigger, int32 room_num = -1);
97 void stop(uint channel,
bool calledFromUnload =
false);
100 void read_another_chunk();
101 bool play_state(
int channel)
const;
102 void change_volume(
int channel,
int vol);
104 void set_overall_volume(
int vol);
105 int get_overall_volume();
106 int32 ticks_to_play(
const char *name,
int roomNum = -1);
107 void change_panning(
int val1,
int val2);
114 int32 digi_play(
const char *name, uint channel, int32 vol = 255,
115 int32 trigger = -1, int32 room_num = -1);
116 int32 digi_play_loop(
const char *name, uint channel, int32 vol = 255,
117 int32 trigger = -1, int32 room_num = -1);
118 void digi_read_another_chunk();
119 void digi_stop(
int channel);
120 bool digi_play_state(
int channel);
121 void digi_change_volume(
int channel,
int vol);
122 void digi_set_overall_volume(
int vol);
123 int digi_get_overall_volume();
124 int32 digi_ticks_to_play(
const char *name,
int roomNum = -1);
125 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)