Mercurial > hg > svapp
comparison audioio/AudioPortAudioTarget.cpp @ 130:4c9c04645685
* Reduce time stretcher to one channel when overload occurs
author | Chris Cannam |
---|---|
date | Mon, 07 Jul 2008 16:49:53 +0000 |
parents | ccdc5b30e54c |
children | 7dae51741cc9 |
comparison
equal
deleted
inserted
replaced
129:df5f16b3c925 | 130:4c9c04645685 |
---|---|
260 if (ch > 0 || sourceChannels == 1) peakRight = peak; | 260 if (ch > 0 || sourceChannels == 1) peakRight = peak; |
261 } | 261 } |
262 | 262 |
263 m_source->setOutputLevels(peakLeft, peakRight); | 263 m_source->setOutputLevels(peakLeft, peakRight); |
264 | 264 |
265 if (Pa_GetStreamCpuLoad(m_stream) > 0.7) { | |
266 if (m_source) m_source->audioProcessingOverload(); | |
267 } | |
268 | |
265 return 0; | 269 return 0; |
266 } | 270 } |
267 | 271 |
268 #endif /* HAVE_PORTAUDIO */ | 272 #endif /* HAVE_PORTAUDIO */ |
269 | 273 |