[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 23/50] paaudio: fix playback glitches
From: |
Kővágó, Zoltán |
Subject: |
[Qemu-devel] [PATCH v3 23/50] paaudio: fix playback glitches |
Date: |
Thu, 17 Jan 2019 00:36:56 +0100 |
Pulseaudio normally assumes that when the server wants it, the client
can generate the audio samples and send it right away. Unfortunately
this is not the case with QEMU -- it's up to the emulated system when
does it generate the samples. Buffering the samples and sending them
from a background thread is just a workaround, that doesn't work too
well. Instead enable pa's compatibility support and let pa worry about
the details.
Signed-off-by: Kővágó, Zoltán <address@hidden>
---
audio/paaudio.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/audio/paaudio.c b/audio/paaudio.c
index 0a770fa57d..7758d304ca 100644
--- a/audio/paaudio.c
+++ b/audio/paaudio.c
@@ -511,10 +511,8 @@ static pa_stream *qpa_simple_new (
flags =
PA_STREAM_INTERPOLATE_TIMING
-#ifdef PA_STREAM_ADJUST_LATENCY
- |PA_STREAM_ADJUST_LATENCY
-#endif
- |PA_STREAM_AUTO_TIMING_UPDATE;
+ |PA_STREAM_AUTO_TIMING_UPDATE
+ |PA_STREAM_EARLY_REQUESTS;
if (dev) {
/* don't move the stream if the user specified a sink/source */
--
2.20.1
- [Qemu-devel] [PATCH v3 10/50] paaudio: port to -audiodev config, (continued)
- [Qemu-devel] [PATCH v3 10/50] paaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 07/50] dsoundaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 14/50] audio: -audiodev command line option: cleanup, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 12/50] spiceaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 20/50] paaudio: properly disconnect streams in fini_*, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 11/50] sdlaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 16/50] audio: basic support for multi backend audio, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 18/50] audio: audiodev= parameters no longer optional when -audiodev present, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 21/50] audio: remove audio_MIN, audio_MAX, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 30/50] noaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 23/50] paaudio: fix playback glitches,
Kővágó, Zoltán <=
- [Qemu-devel] [PATCH v3 17/50] audio: add audiodev properties to frontends, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 05/50] alsaaudio: port to -audiodev config, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 02/50] audio: use qapi AudioFormat instead of audfmt_e, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 28/50] coreaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 36/50] audio: remove remains of the old backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 04/50] audio: -audiodev command line option basic implementation, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 32/50] paaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 43/50] paaudio: get/put_buffer functions, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 35/50] wavaudio: port to the new audio backend api, Kővágó, Zoltán, 2019/01/16
- [Qemu-devel] [PATCH v3 46/50] audio: basic support for multichannel audio, Kővágó, Zoltán, 2019/01/16