aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-04-26 08:06:53 +0000
committerPaweł Kołodziejski2004-04-26 08:06:53 +0000
commit6ca5f9a38ef9f07b1accb65c5b7d5908e3c8728d (patch)
tree1d8b9d68f4c939314d91bae02306b08789876576
parent32d7c8c181d899a0be034a60aea1759f28e68634 (diff)
downloadscummvm-rg350-6ca5f9a38ef9f07b1accb65c5b7d5908e3c8728d.tar.gz
scummvm-rg350-6ca5f9a38ef9f07b1accb65c5b7d5908e3c8728d.tar.bz2
scummvm-rg350-6ca5f9a38ef9f07b1accb65c5b7d5908e3c8728d.zip
mixer buffer size depend on format of sound, it's 1 second timed buffer
svn-id: r13636
-rw-r--r--scumm/imuse_digi/dimuse_track.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse_track.cpp b/scumm/imuse_digi/dimuse_track.cpp
index 1e1b31ee38..51f82d43be 100644
--- a/scumm/imuse_digi/dimuse_track.cpp
+++ b/scumm/imuse_digi/dimuse_track.cpp
@@ -160,8 +160,10 @@ void IMuseDigital::startSound(int soundId, const char *soundName, int soundType,
_track[l]->stream = NULL;
_track[l]->started = false;
} else {
+ // setup 1 second mixer wrapped buffer
+ int32 mixerBufferSize = _track[l]->iteration;
_track[l]->stream2 = NULL;
- _track[l]->stream = makeAppendableAudioStream(freq, _track[l]->mixerFlags, 100000);
+ _track[l]->stream = makeAppendableAudioStream(freq, _track[l]->mixerFlags, mixerBufferSize);
_vm->_mixer->playInputStream(&_track[l]->handle, _track[l]->stream, false, _track[l]->vol / 1000, _track[l]->pan, -1);
_track[l]->started = true;
}