[pulseaudio-commits] r2282 - in /branches/glitch-free/src/pulsecore: core.c core.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Apr 20 12:53:08 PDT 2008


Author: lennart
Date: Sun Apr 20 21:53:07 2008
New Revision: 2282

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2282&root=pulseaudio&view=rev
Log:
maintain a global silence memblock cache

Modified:
    branches/glitch-free/src/pulsecore/core.c
    branches/glitch-free/src/pulsecore/core.h

Modified: branches/glitch-free/src/pulsecore/core.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/core.c?rev=2282&root=pulseaudio&r1=2281&r2=2282&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/core.c (original)
+++ branches/glitch-free/src/pulsecore/core.c Sun Apr 20 21:53:07 2008
@@ -125,6 +125,7 @@
     c->subscription_event_last = NULL;
 
     c->mempool = pool;
+    pa_silence_cache_init(&c->silence_cache);
 
     c->quit_event = NULL;
 
@@ -188,6 +189,7 @@
     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);

Modified: branches/glitch-free/src/pulsecore/core.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/core.h?rev=2282&root=pulseaudio&r1=2281&r2=2282&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/core.h (original)
+++ branches/glitch-free/src/pulsecore/core.h Sun Apr 20 21:53:07 2008
@@ -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 @@
     pa_subscription_event *subscription_event_last;
 
     pa_mempool *mempool;
+    pa_silence_cache silence_cache;
 
     int exit_idle_time, module_idle_time, scache_idle_time;
 




More information about the pulseaudio-commits mailing list