aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/mixer.cpp8
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;
}