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

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Thu May 15 10:57:53 PDT 2008


Author: lennart
Date: Thu May 15 19:57:52 2008
New Revision: 2423

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=2423&root=pulseaudio&view=rev
Log:
add pa_memblockq_get_nblocks()

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

Modified: branches/glitch-free/src/pulsecore/memblockq.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/memblockq.c?rev=2423&root=pulseaudio&r1=2422&r2=2423&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/memblockq.c (original)
+++ branches/glitch-free/src/pulsecore/memblockq.c Thu May 15 19:57:52 2008
@@ -902,3 +902,9 @@
 
     pa_assert(bq->n_blocks == 0);
 }
+
+unsigned pa_memblockq_get_nblocks(pa_memblockq *bq) {
+    pa_assert(bq);
+
+    return bq->n_blocks;
+}

Modified: branches/glitch-free/src/pulsecore/memblockq.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/glitch-free/src/pulsecore/memblockq.h?rev=2423&root=pulseaudio&r1=2422&r2=2423&view=diff
==============================================================================
--- branches/glitch-free/src/pulsecore/memblockq.h (original)
+++ branches/glitch-free/src/pulsecore/memblockq.h Thu May 15 19:57:52 2008
@@ -167,4 +167,6 @@
 /* Check whether we currently are in prebuf state */
 pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq);
 
+unsigned pa_memblockq_get_nblocks(pa_memblockq *bq);
+
 #endif




More information about the pulseaudio-commits mailing list