diff options
author | Torbjörn Andersson | 2006-05-25 09:53:51 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-05-25 09:53:51 +0000 |
commit | 1162a759c03d266e2908bf669e289a511911ff77 (patch) | |
tree | 77ca0c68e2cae72022b5a7052629fdd3fb41d70c /engines/kyra/sound.h | |
parent | 197b1f4e88b8e4b7f5d0fb56b7a3c24818e17cd2 (diff) | |
download | scummvm-rg350-1162a759c03d266e2908bf669e289a511911ff77.tar.gz scummvm-rg350-1162a759c03d266e2908bf669e289a511911ff77.tar.bz2 scummvm-rg350-1162a759c03d266e2908bf669e289a511911ff77.zip |
Added support for fading digital music in or out.
svn-id: r22624
Diffstat (limited to 'engines/kyra/sound.h')
-rw-r--r-- | engines/kyra/sound.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/kyra/sound.h b/engines/kyra/sound.h index ea8501cc62..e43239efc1 100644 --- a/engines/kyra/sound.h +++ b/engines/kyra/sound.h @@ -39,6 +39,8 @@ class SoundHandle; namespace Kyra { +class AUDStream; + class Sound { public: Sound(KyraEngine *engine, Audio::Mixer *mixer); @@ -221,9 +223,10 @@ public: bool init(); - int playSound(Common::File *fileHandle, bool loop = false, int channel = -1); + int playSound(Common::File *fileHandle, bool loop = false, bool fadeIn = false, int channel = -1); bool isPlaying(int channel); void stopSound(int channel); + void beginFadeOut(int channel); private: KyraEngine *_vm; Audio::Mixer *_mixer; @@ -231,6 +234,7 @@ private: struct Sound { Common::File *fileHandle; Audio::SoundHandle handle; + AUDStream *stream; } _sounds[SOUND_STREAMS]; }; |