From 15df04220820bec67552089e0debe9631995169d Mon Sep 17 00:00:00 2001 From: hwsmm <9151706+hwsmm@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:06:56 +0900 Subject: [PATCH] Potential fix for TestRestartFromRestartPoint failure --- osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs b/osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs index 67c50c1a84..ff3a2767f6 100644 --- a/osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs +++ b/osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs @@ -32,7 +32,7 @@ internal class TrackSDL3AudioPlayer : ResamplingPlayer, IDisposable /// /// A position in milliseconds to convert /// - public long GetIndexFromMs(double seconds) => (long)(seconds / 1000.0d * SrcRate) * SrcChannels; + public long GetIndexFromMs(double seconds) => (long)Math.Ceiling(seconds / 1000.0d * SrcRate) * SrcChannels; /// /// Stores raw audio data.