From e6b0eb5057b7e317998f611cd4b0fc35a0651cca Mon Sep 17 00:00:00 2001 From: Ruediger Hanke Date: Fri, 9 Aug 2002 13:35:01 +0000 Subject: Got rid of annoying blips and scratches on my system. It's just for MorphOS not to annoy Ender (see his comment in the source). Happens probably only here. svn-id: r4723 --- sound/mixer.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sound/mixer.cpp') diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 2c918656f3..290d9392c0 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -646,6 +646,11 @@ void SoundMixer::Channel_STREAM::append(void *data, uint32 len) memcpy(_end_of_data, data, len); } _end_of_data = new_end; + +#ifdef __MORPHOS__ + if (_to_be_destroyed) + _to_be_destroyed = false; +#endif } void SoundMixer::Channel_STREAM::mix(int16 *data, uint len) @@ -681,6 +686,9 @@ void SoundMixer::Channel_STREAM::mix(int16 *data, uint len) //warning("Streaming underflow of %d bytes", len); //real_destroy(); //return; +#ifdef __MORPHOS__ + _to_be_destroyed = true; +#endif } _fp_pos = fp_pos; } -- cgit v1.2.3