Mercurial > hg > svapp
diff 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 |
line wrap: on
line diff
--- a/audioio/AudioPortAudioTarget.cpp Thu Jun 26 12:41:23 2008 +0000 +++ b/audioio/AudioPortAudioTarget.cpp Mon Jul 07 16:49:53 2008 +0000 @@ -262,6 +262,10 @@ m_source->setOutputLevels(peakLeft, peakRight); + if (Pa_GetStreamCpuLoad(m_stream) > 0.7) { + if (m_source) m_source->audioProcessingOverload(); + } + return 0; }