paaudio: remove unused stream flags
authorVolker Rümelin <vr_qemu@t-online.de>
Mon, 17 May 2021 19:46:02 +0000 (21:46 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Jun 2021 09:54:09 +0000 (11:54 +0200)
In current code there are no calls to pa_stream_get_latency()
or pa_stream_get_time() to receive latency or time information.

Remove the flags PA_STREAM_INTERPOLATE_TIMING and
PA_STREAM_AUTO_TIMING_UPDATE which instruct PulseAudio to
calculate this information in regular intervals.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Message-Id: <20210517194604.2545-2-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/paaudio.c

index c97b22e970d8ce96b30ac07c8c0255f6d501de89..14b4269c5500f5db2836142051b65461438b09ca 100644 (file)
@@ -463,10 +463,7 @@ static pa_stream *qpa_simple_new (
 
     pa_stream_set_state_callback(stream, stream_state_cb, c);
 
-    flags =
-        PA_STREAM_INTERPOLATE_TIMING
-        | PA_STREAM_AUTO_TIMING_UPDATE
-        | PA_STREAM_EARLY_REQUESTS;
+    flags = PA_STREAM_EARLY_REQUESTS;
 
     if (dev) {
         /* don't move the stream if the user specified a sink/source */