diff options
-rw-r--r-- | scumm/imuse_digi/dimuse_track.cpp | 4 |
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; } |