summaryrefslogtreecommitdiff
path: root/src/modules/module-sine-source.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-04-10 02:26:59 +0200
committerLennart Poettering <lennart@poettering.net>2009-04-10 02:26:59 +0200
commit991cb0613488a81be2eb7d8ed1a8f1b891eb9f13 (patch)
tree48dc237c24dbd93a2e11e66b7dbd00b632ce5722 /src/modules/module-sine-source.c
parent80e18c8da35eb988d10ccada436ab11710c298f6 (diff)
set fixed latencies at more places where appropriate
Diffstat (limited to 'src/modules/module-sine-source.c')
-rw-r--r--src/modules/module-sine-source.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/modules/module-sine-source.c b/src/modules/module-sine-source.c
index 50e473075..a5f1ce705 100644
--- a/src/modules/module-sine-source.c
+++ b/src/modules/module-sine-source.c
@@ -260,10 +260,12 @@ int pa__init(pa_module*m) {
u->source->update_requested_latency = source_update_requested_latency_cb;
u->source->userdata = u;
+ u->block_usec = BLOCK_USEC;
+
pa_source_set_asyncmsgq(u->source, u->thread_mq.inq);
pa_source_set_rtpoll(u->source, u->rtpoll);
+ u->source->fixed_latency = u->block_usec;
- u->block_usec = BLOCK_USEC;
if (!(u->thread = pa_thread_new(thread_func, u))) {
pa_log("Failed to create thread.");