Volker Rümelin 0724c57988 audio: refactor audio_get_avail()
Split out the code in audio_get_avail() that calculates the
buffer size that the audio frontend can read. This is similar
to the code changes in audio_get_free().

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20220923183640.8314-10-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2022-10-11 10:17:08 +02:00
..
2022-10-11 10:17:08 +02:00
2022-10-11 10:17:08 +02:00
2022-09-27 07:32:31 +02:00
2022-09-27 07:32:31 +02:00
2021-12-21 10:50:22 +04:00