22 #ifndef DREAMWEB_SOUND_H 23 #define DREAMWEB_SOUND_H 25 #include "common/array.h" 26 #include "common/str.h" 27 #include "audio/mixer.h" 38 bool loadSpeech(byte type1,
int idx1, byte type2,
int idx2);
39 void volumeSet(uint8 value) { _volume = value; }
40 void volumeChange(uint8 value, int8 direction);
41 void playChannel0(uint8 index, uint8 repeat);
42 void playChannel1(uint8 index);
43 uint8 getChannel0Playing() {
return _channel0Playing; }
44 bool isChannel1Playing() {
return _channel1Playing != 255; }
47 void loadRoomsSample(uint8 sample);
57 Sample(): offset(), size() {}
65 SoundData _soundData[2];
71 uint8 _channel0Playing;
72 uint8 _channel0Repeat;
73 bool _channel0NewSound;
74 uint8 _channel1Playing;
75 bool _channel1NewSound;
79 int8 _volumeDirection;
83 void playSound(uint8 channel, uint8
id, uint8 loops);
84 void stopSound(uint8 channel);
Definition: dreamweb.h:102