Re: [Qemu-devel] [PATCH 21/25] audio: common rate control code for timer based outputs

2015-08-21 Thread Kővágó Zoltán
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,

Re: [Qemu-devel] [PATCH 21/25] audio: common rate control code for timer based outputs

2015-08-20 Thread Marc-André Lureau
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

[Qemu-devel] [PATCH 21/25] audio: common rate control code for timer based outputs

2015-08-06 Thread Kővágó, Zoltán
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.