Skip to content

Commit

Permalink
Fix fade out not working as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeTwentyThree committed Nov 12, 2024
1 parent d1dd0c0 commit e0da9d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Nautilus/Patchers/CustomSoundPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,11 @@ private static bool TryFadeOutBeforeStop(Channel channel)
channel.stop();
return false;
}

channel.getDelay(out ulong _, out ulong _, out bool stopChannels);

if (stopChannels)
return false;

RuntimeManager.CoreSystem.getSoftwareFormat(out var samplesRate, out _, out _);
channel.AddFadeOut(fadeOut.Seconds, out var dspClock);
Expand Down

0 comments on commit e0da9d7

Please sign in to comment.