Fixed glitch in sound buffer space calculation

Sometimes the sound buffer (ALSA) returns a few more samples than we
sent to it. In this case we return 0, which means that no data has
to be sent.
pull/6/head
Andreas Eversberg 6 months ago
parent ba4c095d09
commit 98ed54124a
  1. 2
      src/libsound/sound_alsa.c

@ -515,6 +515,8 @@ int sound_get_tosend(void *inst, int buffer_size)
}
tosend = buffer_size - delay;
if (tosend < 0)
tosend = 0;
return tosend;
}

Loading…
Cancel
Save