commit fd123c33e60985734e8bd4d550a94a2fe259a3e8 parent 59883095b00ba55ce7441a22e8de6971059e0041 Author: Louis Burda <quent.burda@gmail.com> Date: Wed, 13 Mar 2024 20:45:37 +0100 Fix seeking Diffstat:
M | mplay.mp3.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mplay.mp3.c b/mplay.mp3.c @@ -321,7 +321,7 @@ cmd_seek(double time_sec, double delta) } if (time_sec < 0) time_sec = 0; - sample_pos = (size_t) (time_sec * decoder.channels * decoder.rate); + sample_pos = (size_t) (time_sec * decoder.rate); decoder_seek(sample_pos); op = pa_stream_flush(pa_strm, NULL, NULL);