From 45d92a02f4061fbb54baedc66d7d9d233e857125 Mon Sep 17 00:00:00 2001 From: Jerome Fisher Date: Sun, 28 Nov 2004 22:15:09 +0000 Subject: Added a "permanent" field to Channels, which simply prevents them from being deleted during stopAll(). I hope this doesn't step on anyone's toes; it was quite urgent, since loading a saved game stopped MT-32 emulation audio forever. svn-id: r15946 --- sound/mixer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sound/mixer.h') diff --git a/sound/mixer.h b/sound/mixer.h index b51f4976b1..b071c7b293 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -131,14 +131,14 @@ public: /** * Start playing the given audio input stream. */ - void playInputStream(PlayingSoundHandle *handle, AudioStream *input, bool isMusic, byte volume = 255, int8 balance = 0, int id = -1, bool autofreeStream = true); + void playInputStream(PlayingSoundHandle *handle, AudioStream *input, bool isMusic, byte volume = 255, int8 balance = 0, int id = -1, bool autofreeStream = true, bool permanent = false); /** * Stop all currently playing sounds. */ - void stopAll(); + void stopAll(bool force = false); /** * Stop playing the sound with given ID. -- cgit v1.2.3