Mercurial > hg > svapp
diff audioio/AudioPulseAudioTarget.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 | 2aa263b384f8 |
children | 386b02c926bf |
line wrap: on
line diff
--- a/audioio/AudioPulseAudioTarget.cpp Thu Jun 26 12:41:23 2008 +0000 +++ b/audioio/AudioPulseAudioTarget.cpp Mon Jul 07 16:49:53 2008 +0000 @@ -412,9 +412,13 @@ } void -AudioPulseAudioTarget::streamUnderflowStatic(pa_stream *, void *) +AudioPulseAudioTarget::streamUnderflowStatic(pa_stream *, void *data) { std::cerr << "AudioPulseAudioTarget::streamUnderflowStatic: Underflow!" << std::endl; + AudioPulseAudioTarget *target = (AudioPulseAudioTarget *)data; + if (target && target->m_source) { + target->m_source->audioProcessingOverload(); + } } #endif /* HAVE_PULSEAUDIO */