From 26ebea0262f0664c4cd90664da52f4d9f6a9c8bc Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 7 Mar 2014 13:41:20 +0100 Subject: alsa input improvements, not working --- src/SampleQueue.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/SampleQueue.h') diff --git a/src/SampleQueue.h b/src/SampleQueue.h index d00b8f9..eabc301 100644 --- a/src/SampleQueue.h +++ b/src/SampleQueue.h @@ -12,6 +12,8 @@ #include #include +#include + /* This queue is meant to be used by two threads. One producer * that pushes elements into the queue, and one consumer that * retrieves the elements. @@ -37,6 +39,9 @@ public: boost::mutex::scoped_lock lock(m_mutex); if (m_queue.size() >= m_max_size) { + /*fprintf(stderr, "######## push overrun %zu, %zu\n", + len, + m_queue.size()); // */ return 0; } @@ -65,6 +70,9 @@ public: size_t pop(T* buf, size_t len) { boost::mutex::scoped_lock lock(m_mutex); + fprintf(stderr, "######## pop %zu (%zu)\n", + len, + m_queue.size()); size_t ret = 0; -- cgit v1.2.3