audio: common rate control code for timer based outputs
commit857271a29c2c0e5deb05deb540a2580d1d408b34
authorKővágó, Zoltán <dirty.ice.hu@gmail.com>
Thu, 19 Sep 2019 21:24:21 +0000 (19 23:24 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 23 Sep 2019 10:28:47 +0000 (23 12:28 +0200)
tree4fc6973c058119db43306e2fbedecc007396aa12
parentdc88e38fa7f7480becf34712eae41380b62aacc6
audio: common rate control code for timer based outputs

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 <DirtY.iCE.hu@gmail.com>
Message-id: fd0fe5b95b13fa26d09ae77a72f99d0ea411de14.1568927990.git.DirtY.iCE.hu@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c
audio/audio_int.h
audio/noaudio.c
audio/spiceaudio.c
audio/wavaudio.c