Apply frequency adjust to channel rather than sample for safety

This commit is contained in:
Dean Herbert
2022-06-01 18:04:13 +09:00
parent 0472881078
commit 93b8c90ecc

View File

@ -279,16 +279,18 @@ namespace osu.Game.Screens.Edit.Timing
{ {
stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint); stick.FlashColour(overlayColourProvider.Content1, beatLength, Easing.OutQuint);
if (clunk != null)
{
Schedule(() => Schedule(() =>
{ {
clunk.Frequency.Value = RNG.NextDouble(0.98f, 1.02f); var channel = clunk?.GetChannel();
clunk.Play();
if (channel != null)
{
channel.Frequency.Value = RNG.NextDouble(0.98f, 1.02f);
channel.Play();
}
}); });
} }
} }
} }
} }
}
} }