Mercurial > hg > sonic-visualiser
comparison audioio/AudioTargetFactory.cpp @ 101:a82c9952e601
* Fix crash in short spectrogram paint
* Fix incorrect apparent end point for waveforms
author | Chris Cannam |
---|---|
date | Wed, 14 Feb 2007 17:52:06 +0000 |
parents | cd5d7ff8ef38 |
children | 00309c07f7a9 |
comparison
equal
deleted
inserted
replaced
100:f3516e520652 | 101:a82c9952e601 |
---|---|
52 delete target; | 52 delete target; |
53 } | 53 } |
54 #endif | 54 #endif |
55 | 55 |
56 #ifdef HAVE_PORTAUDIO | 56 #ifdef HAVE_PORTAUDIO |
57 target = new AudioPortAudioTarget(source); | 57 // target = new AudioPortAudioTarget(source); |
58 if (target->isOK()) return target; | 58 // if (target->isOK()) return target; |
59 else { | 59 // else { |
60 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << std::endl; | 60 // std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << std::endl; |
61 delete target; | 61 // delete target; |
62 } | 62 // } |
63 #endif | 63 #endif |
64 | 64 |
65 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: No suitable targets available" << std::endl; | 65 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: No suitable targets available" << std::endl; |
66 return 0; | 66 return 0; |
67 } | 67 } |