]> Git Repo - qemu.git/commit
paaudio: try to drain the recording stream
authorVolker Rümelin <[email protected]>
Sat, 4 Jan 2020 09:11:21 +0000 (10:11 +0100)
committerGerd Hoffmann <[email protected]>
Mon, 6 Jan 2020 07:47:16 +0000 (08:47 +0100)
commitacc3b63e1bdf806de1a520522dd43e494461d3bb
tree46b225a36811a8aaaa52a7d602b342168fd50341
parent4db3e634c77a671fadbba6d4d39e0d21232e5609
paaudio: try to drain the recording stream

There is no guarantee a single call to pa_stream_peek every
timer_period microseconds can read a recording stream faster
than the data gets produced at the source. Let qpa_read try to
drain the recording stream.

To reproduce the problem:

Start qemu with -audiodev pa,id=audio0,in.mixing-engine=off

On the host connect the qemu recording stream to the monitor of
a hardware output device. While the problem can also be seen
with a hardware input device, it's obvious with the monitor of
a hardware output device.

In the guest start audio recording with audacity and notice the
slow recording data rate.

Signed-off-by: Volker Rümelin <[email protected]>
Message-id: 20200104091122[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
audio/paaudio.c
This page took 0.022006 seconds and 4 git commands to generate.