diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-05-08 01:56:21 +0200 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-08 22:31:51 +0100 |
commit | c2a3d914804cd5c72463f41a21ff5cff5334b619 (patch) | |
tree | 8f69e9b24ea933e3b63db3361bf02f758f069344 /src/modules/module-sine-source.c | |
parent | 7e664dc56a1f2ce385f6f7739209ef2413974d8f (diff) |
core: introduce pa_{sink,source}_set_fixed_latency()
This allows us to forward the fixed latency directly from the sink to
the monitor source withut having to wait for pa_sink_put().
Diffstat (limited to 'src/modules/module-sine-source.c')
-rw-r--r-- | src/modules/module-sine-source.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/module-sine-source.c b/src/modules/module-sine-source.c index a5f1ce70..a6e15d81 100644 --- a/src/modules/module-sine-source.c +++ b/src/modules/module-sine-source.c @@ -264,8 +264,7 @@ int pa__init(pa_module*m) { 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; - + pa_source_set_fixed_latency(u->source, u->block_usec); if (!(u->thread = pa_thread_new(thread_func, u))) { pa_log("Failed to create thread."); |