[pulseaudio-discuss] [PATCH] null-sink: Set latency range at the time of initialization of module.

sudarshan.bisht at nokia.com sudarshan.bisht at nokia.com
Fri Sep 30 02:49:54 PDT 2011


From: Sudarshan Bisht<sudarshan.bisht at nokia.com>

At the time of module initialization latency range is being set so that the null-sink
would be aware of its limitations with latencies.

---
 src/modules/module-null-sink.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/modules/module-null-sink.c b/src/modules/module-null-sink.c
index 74a2ebb..0c7f6ed 100644
--- a/src/modules/module-null-sink.c
+++ b/src/modules/module-null-sink.c
@@ -322,6 +322,8 @@ int pa__init(pa_module*m) {
         goto fail;
     }
 
+    pa_sink_set_latency_range(u->sink, 0, BLOCK_USEC);
+
     pa_sink_put(u->sink);
 
     pa_modargs_free(ma);
-- 
1.7.0.4



More information about the pulseaudio-discuss mailing list