KYRA: (LoK/Mac) - slightly improve music fadeout

(it shouldn't delay and pretend to fade if nothing is playing)
This commit is contained in:
athrxx 2022-05-22 19:30:32 +02:00
parent e5b35d05e9
commit e18beb4e9e

View File

@ -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);