]> code.delx.au - pulseaudio/blobdiff - polyp/module-alsa-sink.c
remove global memblock statistic variables in favor of memblock_stat objects
[pulseaudio] / polyp / module-alsa-sink.c
index 5b4a7b73254bf9f52a99c89128898355e45d01ce..06b07f3370e68cacc511b63120d928ab3057dd69 100644 (file)
@@ -217,7 +217,7 @@ int pa_module_init(struct pa_core *c, struct pa_module*m) {
 
     fprintf(stderr, __FILE__": using %u fragments of size %u bytes.\n", periods, u->fragment_size);
 
-    u->silence.memblock = pa_memblock_new(u->silence.length = u->fragment_size);
+    u->silence.memblock = pa_memblock_new(u->silence.length = u->fragment_size, c->memblock_stat);
     assert(u->silence.memblock);
     pa_silence_memblock(u->silence.memblock, &ss);
     u->silence.index = 0;