aboutsummaryrefslogtreecommitdiff
path: root/engines/chewy/sound.h
diff options
context:
space:
mode:
authorFilippos Karapetis2016-10-09 23:38:39 +0300
committerFilippos Karapetis2016-10-09 23:38:39 +0300
commit0a4c1eeca1ebd67cb0dcd891aba9a3c05e8e8a80 (patch)
tree833b69046bcba512007045913e94d22e11f953c1 /engines/chewy/sound.h
parentc1e44df357a310a6020e472881e0d1ed29c8ab37 (diff)
downloadscummvm-rg350-0a4c1eeca1ebd67cb0dcd891aba9a3c05e8e8a80.tar.gz
scummvm-rg350-0a4c1eeca1ebd67cb0dcd891aba9a3c05e8e8a80.tar.bz2
scummvm-rg350-0a4c1eeca1ebd67cb0dcd891aba9a3c05e8e8a80.zip
CHEWY: Move all sound functions into sound.*
Diffstat (limited to 'engines/chewy/sound.h')
-rw-r--r--engines/chewy/sound.h29
1 files changed, 27 insertions, 2 deletions
diff --git a/engines/chewy/sound.h b/engines/chewy/sound.h
index 7884eadb63..9b7acab59f 100644
--- a/engines/chewy/sound.h
+++ b/engines/chewy/sound.h
@@ -30,18 +30,43 @@ namespace Chewy {
class SoundResource;
+#define MAX_SOUND_EFFECTS 14
+
class Sound {
public:
Sound(Audio::Mixer *mixer);
virtual ~Sound();
- void playSound(int num, bool loop = false);
+ void playSound(int num, bool loop = false, uint channel = 0);
+ void playSound(byte *data, uint32 size, bool loop = false, uint channel = 0, DisposeAfterUse::Flag dispose = DisposeAfterUse::YES);
+ void pauseSound(uint channel);
+ void resumeSound(uint channel);
+ void stopSound(uint channel);
+ bool isSoundActive(uint channel);
+ void setSoundVolume(uint volume);
+ void setSoundChannelVolume(uint channel, uint volume);
+ void setSoundChannelBalance(uint channel, uint balance);
+
void playMusic(int num, bool loop = false);
+ void playMusic(byte *data, uint32 size, bool loop = false, DisposeAfterUse::Flag dispose = DisposeAfterUse::YES);
+ void pauseMusic();
+ void resumeMusic();
+ void stopMusic();
+ bool isMusicActive();
+ void setMusicVolume(uint volume);
+
void playSpeech(int num);
+ void pauseSpeech();
+ void resumeSpeech();
+ void stopSpeech();
+ bool isSpeechActive();
+ void setSpeechVolume(uint volume);
+
+ void stopAll();
private:
Audio::Mixer *_mixer;
- Audio::SoundHandle _soundHandle;
+ Audio::SoundHandle _soundHandle[MAX_SOUND_EFFECTS];
Audio::SoundHandle _musicHandle;
Audio::SoundHandle _speechHandle;