diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-04-20 19:53:07 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-04-20 19:53:07 +0000 |
commit | 7556ef5bfc37c99064d95857626bcf9f20423c70 (patch) | |
tree | f3fc7400d980b83e94bfa12000e95746c749bab5 | |
parent | a0671aa8db8d92ae33dc0e8003cd793635098201 (diff) |
maintain a global silence memblock cache
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2282 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r-- | src/pulsecore/core.c | 2 | ||||
-rw-r--r-- | src/pulsecore/core.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/pulsecore/core.c b/src/pulsecore/core.c index cf018509..3b758a38 100644 --- a/src/pulsecore/core.c +++ b/src/pulsecore/core.c @@ -125,6 +125,7 @@ pa_core* pa_core_new(pa_mainloop_api *m, int shared) { c->subscription_event_last = NULL; c->mempool = pool; + pa_silence_cache_init(&c->silence_cache); c->quit_event = NULL; @@ -188,6 +189,7 @@ static void core_free(pa_object *o) { pa_xfree(c->default_source_name); pa_xfree(c->default_sink_name); + pa_silence_cache_done(&c->silence_cache); pa_mempool_free(c->mempool); pa_property_cleanup(c); diff --git a/src/pulsecore/core.h b/src/pulsecore/core.h index 6be1a0c5..50c05b4c 100644 --- a/src/pulsecore/core.h +++ b/src/pulsecore/core.h @@ -35,6 +35,7 @@ #include <pulsecore/llist.h> #include <pulsecore/hook-list.h> #include <pulsecore/asyncmsgq.h> +#include <pulsecore/sample-util.h> typedef struct pa_core pa_core; @@ -112,6 +113,7 @@ struct pa_core { pa_subscription_event *subscription_event_last; pa_mempool *mempool; + pa_silence_cache silence_cache; int exit_idle_time, module_idle_time, scache_idle_time; |