aboutsummaryrefslogtreecommitdiff
path: root/saga/sound.h
diff options
context:
space:
mode:
authorTorbjörn Andersson2004-11-26 13:28:00 +0000
committerTorbjörn Andersson2004-11-26 13:28:00 +0000
commit66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670 (patch)
treed726675cbb9fd7b4ede8b89d8ee86d1b26f37b9e /saga/sound.h
parent41d1be2ea8e1869b056cf09f3b82d52363aa80c1 (diff)
downloadscummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.tar.gz
scummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.tar.bz2
scummvm-rg350-66b8bcd7ebb5cc53afc2a2192a8ccc9ae24ef670.zip
Added looping background noise to the IHNM intro. I don't know if it's the
correct sound or the correct volume, but the small extension to allow the engine to start looping sounds is worthwhile enough in itself, I think. svn-id: r15895
Diffstat (limited to 'saga/sound.h')
-rw-r--r--saga/sound.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/saga/sound.h b/saga/sound.h
index 06292c2099..1f339b2f5a 100644
--- a/saga/sound.h
+++ b/saga/sound.h
@@ -32,6 +32,10 @@
namespace Saga {
+enum SOUND_FLAGS {
+ SOUND_LOOP = 1
+};
+
struct SOUNDBUFFER {
uint16 s_freq;
int s_samplebits;
@@ -48,7 +52,7 @@ public:
Sound(SagaEngine *vm, SoundMixer *mixer, int enabled);
~Sound();
- int playSound(SOUNDBUFFER *buf, int volume);
+ int playSound(SOUNDBUFFER *buf, int volume, bool loop);
int pauseSound();
int resumeSound();
int stopSound();