aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
authorRuediger Hanke2002-08-09 11:23:14 +0000
committerRuediger Hanke2002-08-09 11:23:14 +0000
commit0e2f835d1fc301eb8086c48bd1cf7c32d2691d05 (patch)
tree90f7cd5cecaff2192d2bd1ef764ce02c524c63f9 /sound/mixer.cpp
parent02beeb1201e355824165171377444970bb6fb23c (diff)
downloadscummvm-rg350-0e2f835d1fc301eb8086c48bd1cf7c32d2691d05.tar.gz
scummvm-rg350-0e2f835d1fc301eb8086c48bd1cf7c32d2691d05.tar.bz2
scummvm-rg350-0e2f835d1fc301eb8086c48bd1cf7c32d2691d05.zip
Fixed Mixer full warnings, Dig music plays much better now on MorphOS
svn-id: r4722
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 6830483d4c..2c918656f3 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -630,6 +630,7 @@ void SoundMixer::Channel_STREAM::append(void *data, uint32 len)
byte *cur_pos = _pos; /* This is just to prevent the variable to move during the tests :-) */
if (new_end > (_ptr + _buffer_size)) {
/* Wrap-around case */
+ new_end = _ptr + len - ((_ptr + _buffer_size) - _end_of_data);
if ((_end_of_data < cur_pos) || (new_end >= cur_pos)) {
warning("Mixer full... Trying to not break too much ");
return;