# HG changeset patch # User Chris Cannam # Date 1171630817 0 # Node ID 00309c07f7a9577e6eb11fcd2e7b72921b4c6ebc # Parent a82c9952e601bdb9cc9f87361bbc77ae07e0da1d ... diff -r a82c9952e601 -r 00309c07f7a9 audioio/AudioTargetFactory.cpp --- a/audioio/AudioTargetFactory.cpp Wed Feb 14 17:52:06 2007 +0000 +++ b/audioio/AudioTargetFactory.cpp Fri Feb 16 13:00:17 2007 +0000 @@ -54,12 +54,12 @@ #endif #ifdef HAVE_PORTAUDIO -// target = new AudioPortAudioTarget(source); -// if (target->isOK()) return target; -// else { -// std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << std::endl; -// delete target; -// } + target = new AudioPortAudioTarget(source); + if (target->isOK()) return target; + else { + std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << std::endl; + delete target; + } #endif std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: No suitable targets available" << std::endl;