comparison 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
comparison
equal deleted inserted replaced
129:df5f16b3c925 130:4c9c04645685
410 { 410 {
411 std::cerr << "AudioPulseAudioTarget::streamOverflowStatic: Overflow!" << std::endl; 411 std::cerr << "AudioPulseAudioTarget::streamOverflowStatic: Overflow!" << std::endl;
412 } 412 }
413 413
414 void 414 void
415 AudioPulseAudioTarget::streamUnderflowStatic(pa_stream *, void *) 415 AudioPulseAudioTarget::streamUnderflowStatic(pa_stream *, void *data)
416 { 416 {
417 std::cerr << "AudioPulseAudioTarget::streamUnderflowStatic: Underflow!" << std::endl; 417 std::cerr << "AudioPulseAudioTarget::streamUnderflowStatic: Underflow!" << std::endl;
418 AudioPulseAudioTarget *target = (AudioPulseAudioTarget *)data;
419 if (target && target->m_source) {
420 target->m_source->audioProcessingOverload();
421 }
418 } 422 }
419 423
420 #endif /* HAVE_PULSEAUDIO */ 424 #endif /* HAVE_PULSEAUDIO */
421 425