Hi,
2015-08-21 00:37 keltezéssel, Marc-André Lureau írta:
Hi
On Thu, Aug 6, 2015 at 8:28 PM, Kővágó, Zoltán wrote:
-decr = rate_get_samples(&hw->info, &out->rate);
-decr = audio_MIN(out->fsize - out->fpos, decr);
-
-*size = decr << 2;
+*size = audio_rate_get_bytes(&hw->info,
Hi
On Thu, Aug 6, 2015 at 8:28 PM, Kővágó, Zoltán wrote:
>
> -decr = rate_get_samples(&hw->info, &out->rate);
> -decr = audio_MIN(out->fsize - out->fpos, decr);
> -
> -*size = decr << 2;
> +*size = audio_rate_get_bytes(&hw->info, &out->rate,
> + (ou
This commit removes the ad-hoc rate-limiting code from noaudio and
wavaudio, and replaces them with a (slightly modified) code from
spiceaudio. This way multiple write calls (for example when the
circular buffer wraps around) do not cause problems.
Signed-off-by: Kővágó, Zoltán
---
audio/audio.