mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 06:39:17 +00:00
KYRA: (LoK/Mac) - slightly improve music fadeout
(it shouldn't delay and pretend to fade if nothing is playing)
This commit is contained in:
parent
e5b35d05e9
commit
e18beb4e9e
@ -227,6 +227,9 @@ void SoundMac::beginFadeOut() {
|
||||
if (!_ready)
|
||||
return;
|
||||
|
||||
if (!isPlaying())
|
||||
return;
|
||||
|
||||
_driver->doCommand(HalestormDriver::kSongFadeOut, 30);
|
||||
while (_driver->doCommand(HalestormDriver::kSongFadeGetState) >= 16)
|
||||
_vm->delay(8);
|
||||
|
Loading…
Reference in New Issue
Block a user