summary refs log tree commit diff stats
path: root/hw/display/edid-generate.c
diff options
context:
space:
mode:
authorVolker RĂ¼melin <vr_qemu@t-online.de>2021-12-26 16:40:16 +0100
committerGerd Hoffmann <kraxel@redhat.com>2022-01-13 10:47:52 +0100
commit9d90ceb27461d7d0d172fd941b812d511794a6c6 (patch)
treeb95b25f7d550ea4970a6522e0eb9afbe83e82ae1 /hw/display/edid-generate.c
parentead789eb46a7df4eaab9e14e29e1d0d2a379988d (diff)
downloadfocaccia-qemu-9d90ceb27461d7d0d172fd941b812d511794a6c6.tar.gz
focaccia-qemu-9d90ceb27461d7d0d172fd941b812d511794a6c6.zip
dsoundaudio: fix crackling audio recordings
Audio recordings with the DirectSound backend don't sound right.
A look a the Microsoft online documentation tells us why.

From the DirectSound Programming Guide, Capture Buffer Information:
'You can safely copy data from the buffer only up to the read
cursor.'

Change the code to read up to the read cursor instead of the
capture cursor.

Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-Id: <20211226154017.6067-2-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/edid-generate.c')
0 files changed, 0 insertions, 0 deletions