Skip to content

Commit

Permalink
Potential fix for TestRestartFromRestartPoint failure
Browse files Browse the repository at this point in the history
  • Loading branch information
hwsmm committed Sep 18, 2024
1 parent a3263af commit 15df042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Framework/Audio/Track/TrackSDL3AudioPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ internal class TrackSDL3AudioPlayer : ResamplingPlayer, IDisposable
/// </summary>
/// <param name="seconds">A position in milliseconds to convert</param>
/// <returns></returns>
public long GetIndexFromMs(double seconds) => (long)(seconds / 1000.0d * SrcRate) * SrcChannels;
public long GetIndexFromMs(double seconds) => (long)Math.Ceiling(seconds / 1000.0d * SrcRate) * SrcChannels;

/// <summary>
/// Stores raw audio data.
Expand Down

0 comments on commit 15df042

Please sign in to comment.