maintain a global silence memblock cache

git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/glitch-free@2282 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-04-20 19:53:07 +00:00
parent a0671aa8db
commit 7556ef5bfc
2 changed files with 4 additions and 0 deletions

View file

@ -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);

View file

@ -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;