diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/kyra/sound_towns.cpp | 5 | ||||
-rw-r--r-- | engines/scumm/player_mod.cpp | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp index 8413cc2ba9..84beeef453 100644 --- a/engines/kyra/sound_towns.cpp +++ b/engines/kyra/sound_towns.cpp @@ -241,9 +241,10 @@ void SoundTowns::playSoundEffect(uint8 track) { playbackBufferSize -= 0x20; setPitch(sfxPlaybackBuffer, playbackBufferSize, sfxHeader->pitch, pitch); - _currentSFX = Audio::makeLinearInputStream(0x2b11, + _currentSFX = Audio::makeLinearInputStream(sfxPlaybackBuffer, playbackBufferSize, + 0x2b11, Audio::Mixer::FLAG_UNSIGNED | Audio::Mixer::FLAG_LITTLE_ENDIAN | Audio::Mixer::FLAG_AUTOFREE, - sfxPlaybackBuffer, playbackBufferSize, 0, 0); + 0, 0); _mixer->playInputStream(Audio::Mixer::kSFXSoundType, &_sfxHandle, _currentSFX); } diff --git a/engines/scumm/player_mod.cpp b/engines/scumm/player_mod.cpp index 38a5c8554e..918df6e6dc 100644 --- a/engines/scumm/player_mod.cpp +++ b/engines/scumm/player_mod.cpp @@ -91,7 +91,7 @@ void Player_MOD::startChannel(int id, void *data, int size, int rate, uint8 vol, _channels[i].vol = vol; _channels[i].pan = pan; _channels[i].freq = rate; - _channels[i].input = Audio::makeLinearInputStream(rate, Audio::Mixer::FLAG_AUTOFREE | (loopStart != loopEnd ? Audio::Mixer::FLAG_LOOP : 0), (const byte*)data, size, loopStart, loopEnd - loopStart); + _channels[i].input = Audio::makeLinearInputStream((const byte*)data, size, rate, Audio::Mixer::FLAG_AUTOFREE | (loopStart != loopEnd ? Audio::Mixer::FLAG_LOOP : 0), loopStart, loopEnd); _channels[i].converter = Audio::makeRateConverter(rate, _mixer->getOutputRate(), false, false); } |