diff options
author | Ruediger Hanke | 2002-08-09 13:35:01 +0000 |
---|---|---|
committer | Ruediger Hanke | 2002-08-09 13:35:01 +0000 |
commit | e6b0eb5057b7e317998f611cd4b0fc35a0651cca (patch) | |
tree | 8dcae8e65f7deaca96ebfe246c3acb990d05ddbb | |
parent | 0e2f835d1fc301eb8086c48bd1cf7c32d2691d05 (diff) | |
download | scummvm-rg350-e6b0eb5057b7e317998f611cd4b0fc35a0651cca.tar.gz scummvm-rg350-e6b0eb5057b7e317998f611cd4b0fc35a0651cca.tar.bz2 scummvm-rg350-e6b0eb5057b7e317998f611cd4b0fc35a0651cca.zip |
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
-rw-r--r-- | sound/mixer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |