We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44315d4 commit b88d1c3Copy full SHA for b88d1c3
examples/basics/06-seeking/seeking.c
@@ -96,7 +96,7 @@ static void seek_audio(float x, float y)
96
if (SDL_PointInRectFloat(&pt, &progressbar)) {
97
/* seek to a new position in the track, based on where the mouse clicked/dragged in the progress bar. */
98
const float pct = (pt.x - progressbar.x) / progressbar.w;
99
- MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio)) * pct);
+ MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio) * pct));
100
}
101
102
0 commit comments