Mercurial > hg > svapp
changeset 119:1ba557a20ca3
...
author | Chris Cannam |
---|---|
date | Wed, 21 May 2008 17:17:16 +0000 |
parents | c41e340dfe8d |
children | 2aa263b384f8 |
files | audioio/AudioPulseAudioTarget.cpp audioio/AudioPulseAudioTarget.h |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
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) {
--- 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