Mercurial > hg > svapp
comparison audioio/AudioTargetFactory.cpp @ 293:068235cf5bf7
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 14:12:50 +0000 |
parents | 67cea66bd588 |
children | ccd3c927638b |
comparison
equal
deleted
inserted
replaced
291:3fc0df289533 | 293:068235cf5bf7 |
---|---|
133 #ifdef HAVE_PORTAUDIO_2_0 | 133 #ifdef HAVE_PORTAUDIO_2_0 |
134 if (m_default == "port") target = new AudioPortAudioTarget(source); | 134 if (m_default == "port") target = new AudioPortAudioTarget(source); |
135 #endif | 135 #endif |
136 | 136 |
137 if (!target || !target->isOK()) { | 137 if (!target || !target->isOK()) { |
138 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open the requested target (\"" << m_default << "\")" << std::endl; | 138 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open the requested target (\"" << m_default << "\")" << endl; |
139 delete target; | 139 delete target; |
140 return 0; | 140 return 0; |
141 } else { | 141 } else { |
142 return target; | 142 return target; |
143 } | 143 } |
145 | 145 |
146 #ifdef HAVE_JACK | 146 #ifdef HAVE_JACK |
147 target = new AudioJACKTarget(source); | 147 target = new AudioJACKTarget(source); |
148 if (target->isOK()) return target; | 148 if (target->isOK()) return target; |
149 else { | 149 else { |
150 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open JACK target" << std::endl; | 150 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open JACK target" << endl; |
151 delete target; | 151 delete target; |
152 } | 152 } |
153 #endif | 153 #endif |
154 | 154 |
155 #ifdef HAVE_LIBPULSE | 155 #ifdef HAVE_LIBPULSE |
156 target = new AudioPulseAudioTarget(source); | 156 target = new AudioPulseAudioTarget(source); |
157 if (target->isOK()) return target; | 157 if (target->isOK()) return target; |
158 else { | 158 else { |
159 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PulseAudio target" << std::endl; | 159 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PulseAudio target" << endl; |
160 delete target; | 160 delete target; |
161 } | 161 } |
162 #endif | 162 #endif |
163 | 163 |
164 #ifdef HAVE_COREAUDIO | 164 #ifdef HAVE_COREAUDIO |
165 target = new AudioCoreAudioTarget(source); | 165 target = new AudioCoreAudioTarget(source); |
166 if (target->isOK()) return target; | 166 if (target->isOK()) return target; |
167 else { | 167 else { |
168 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open CoreAudio target" << std::endl; | 168 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open CoreAudio target" << endl; |
169 delete target; | 169 delete target; |
170 } | 170 } |
171 #endif | 171 #endif |
172 | 172 |
173 #ifdef HAVE_PORTAUDIO_2_0 | 173 #ifdef HAVE_PORTAUDIO_2_0 |
174 target = new AudioPortAudioTarget(source); | 174 target = new AudioPortAudioTarget(source); |
175 if (target->isOK()) return target; | 175 if (target->isOK()) return target; |
176 else { | 176 else { |
177 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << std::endl; | 177 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: Failed to open PortAudio target" << endl; |
178 delete target; | 178 delete target; |
179 } | 179 } |
180 #endif | 180 #endif |
181 | 181 |
182 std::cerr << "WARNING: AudioTargetFactory::createCallbackTarget: No suitable targets available" << std::endl; | 182 cerr << "WARNING: AudioTargetFactory::createCallbackTarget: No suitable targets available" << endl; |
183 return 0; | 183 return 0; |
184 } | 184 } |
185 | 185 |
186 | 186 |