Mercurial > hg > svapp
diff audioio/AudioTargetFactory.cpp @ 117:2bc8bf6d016c
* Provisional PulseAudio output driver. No latency handling yet, and
some other things missing. The very basic basics work.
author | Chris Cannam |
---|---|
date | Wed, 21 May 2008 16:54:24 +0000 |
parents | ccdc5b30e54c |
children | d615d0220828 |
line wrap: on
line diff
--- a/audioio/AudioTargetFactory.cpp Tue May 20 10:14:15 2008 +0000 +++ b/audioio/AudioTargetFactory.cpp Wed May 21 16:54:24 2008 +0000 @@ -18,6 +18,7 @@ #include "AudioJACKTarget.h" #include "AudioCoreAudioTarget.h" #include "AudioPortAudioTarget.h" +#include "AudioPulseAudioTarget.h" #include <iostream> @@ -34,6 +35,15 @@ delete target; } #endif + +#ifdef HAVE_LIBPULSE + target = new AudioPulseAudioTarget(source); + if (target->isOK()) return target; + else { + std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PulseAudio target" << std::endl; + delete target; + } +#endif #ifdef HAVE_COREAUDIO target = new AudioCoreAudioTarget(source);