OSDN Git Service

audio: align audio_generic_write with audio_pcm_hw_run_out
authorVolker Rümelin <vr_qemu@t-online.de>
Sun, 20 Sep 2020 17:17:26 +0000 (19:17 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 23 Sep 2020 06:19:42 +0000 (08:19 +0200)
commit2d8823077e56598da1ad6adf7e5760f84057bad1
treebfb10ee20ea6a9b74079f736dda62d269e369428
parentac221f45e3c4fc7823a8e913a6926ca8509c2526
audio: align audio_generic_write with audio_pcm_hw_run_out

The function audio_generic_write should work exactly like
audio_pcm_hw_run_out. It's a very similar function working on a
different buffer.

This patch significantly reduces the number of drop-outs with
the DirectSound backend. To hear the difference start qemu with
-audiodev dsound,id=audio0,out.mixing-engine=off and play a
song in the guest with and without this patch.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-id: 20200920171729.15861-6-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c