Commit a4bdf092 authored by Alexander Mikhaylenko's avatar Alexander Mikhaylenko

retro-pa-player: Fix resample loop condition

Libsamplerate operates with the number of frames, so we should divide
length by 2 when comparing.
parent dca3c075
Pipeline #148747 passed with stages
in 4 minutes and 41 seconds
......@@ -109,7 +109,7 @@ resample (RetroPaPlayer *self,
frames_used_in = 0;
frames_used_out = 0;
while (frames_used_in < length) {
while (frames_used_in < length / 2) {
SRC_DATA data;
data.data_in = data_in + frames_used_in * sizeof (gfloat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment