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.