comparison audioio/AudioPulseAudioTarget.cpp @ 119:1ba557a20ca3

...
author Chris Cannam
date Wed, 21 May 2008 17:17:16 +0000
parents c41e340dfe8d
children 2aa263b384f8
comparison
equal deleted inserted replaced
118:c41e340dfe8d 119:1ba557a20ca3
208 208
209 output = new float[tmpbufsz * tmpbufch]; 209 output = new float[tmpbufsz * tmpbufch];
210 } 210 }
211 211
212 size_t received = m_source->getSourceSamples(nframes, tmpbuf); 212 size_t received = m_source->getSourceSamples(nframes, tmpbuf);
213
214 std::cerr << "requested " << nframes << ", received " << received << std::endl;
215 if (received < nframes) {
216 std::cerr << "*** WARNING: Wrong number of frames received" << std::endl;
217 }
213 218
214 float peakLeft = 0.0, peakRight = 0.0; 219 float peakLeft = 0.0, peakRight = 0.0;
215 220
216 for (size_t ch = 0; ch < 2; ++ch) { 221 for (size_t ch = 0; ch < 2; ++ch) {
217 222