diff audioio/AudioPulseAudioTarget.cpp @ 119:1ba557a20ca3

...
author Chris Cannam
date Wed, 21 May 2008 17:17:16 +0000
parents c41e340dfe8d
children 2aa263b384f8
line wrap: on
line diff
--- a/audioio/AudioPulseAudioTarget.cpp	Wed May 21 17:11:57 2008 +0000
+++ b/audioio/AudioPulseAudioTarget.cpp	Wed May 21 17:17:16 2008 +0000
@@ -211,6 +211,11 @@
 	
     size_t received = m_source->getSourceSamples(nframes, tmpbuf);
 
+    std::cerr << "requested " << nframes << ", received " << received << std::endl;
+    if (received < nframes) {
+        std::cerr << "*** WARNING: Wrong number of frames received" << std::endl;
+    }
+
     float peakLeft = 0.0, peakRight = 0.0;
 
     for (size_t ch = 0; ch < 2; ++ch) {