aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorVolker RĂ¼melin <vr_qemu@t-online.de>2020-09-20 19:17:22 +0200
committerGerd Hoffmann <kraxel@redhat.com>2020-09-23 08:19:42 +0200
commit4c3356f96557e848f0323772f9502d60817682dc (patch)
tree90ecf10ad23a3203aef9dd929fa07ec59b6ab1e7 /qom
parentd4b70fa4ede25734d2ff76503c735e6fcee6cfda (diff)
downloadqemu-4c3356f96557e848f0323772f9502d60817682dc.zip
qemu-4c3356f96557e848f0323772f9502d60817682dc.tar.gz
qemu-4c3356f96557e848f0323772f9502d60817682dc.tar.bz2
audio/audio: fix video playback slowdown with spiceaudio
This patch allows the audio backends get_buffer_out() functions to drop audio data and mitigates a bug reported on the qemu-devel mailing list. https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03832.html The new rules for the variables buf and size returned by get_buffer_out() are: size == 0: Downstream playback buffer is full. Retry later. size > 0, buf != NULL: Copy size bytes to buf for playback. size > 0, buf == NULL: Drop size bytes. The audio playback rate with spiceaudio for the no audio case is too fast, but that's what we had before commit fb35c2cec5 "audio/dsound: fix invalid parameters error". The complete fix comes with the next patch. Reported-by: Qi Zhou <atmgnd@outlook.com> Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de> Message-id: 20200920171729.15861-2-vr_qemu@t-online.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'qom')
0 files changed, 0 insertions, 0 deletions