# HG changeset patch # User Chris Cannam # Date 1211390236 0 # Node ID 1ba557a20ca35f28a98dccd867f0758ab4dade68 # Parent c41e340dfe8d644c70f823d17457e70186c10b73 ... diff -r c41e340dfe8d -r 1ba557a20ca3 audioio/AudioPulseAudioTarget.cpp --- 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) { diff -r c41e340dfe8d -r 1ba557a20ca3 audioio/AudioPulseAudioTarget.h --- a/audioio/AudioPulseAudioTarget.h Wed May 21 17:11:57 2008 +0000 +++ b/audioio/AudioPulseAudioTarget.h Wed May 21 17:17:16 2008 +0000 @@ -59,7 +59,7 @@ class MainLoopThread : public Thread { public: - MainLoopThread(pa_mainloop *loop) : Thread(RTThread), m_loop(loop) { } + MainLoopThread(pa_mainloop *loop) : Thread(NonRTThread), m_loop(loop) { } //!!! or RTThread virtual void run() { int rv = 0; pa_mainloop_run(m_loop, &rv); //!!! check return value from this, and rv