comparison data/fileio/AudioFileReaderFactory.cpp @ 843:e802e550a1f2

Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author Chris Cannam
date Tue, 26 Nov 2013 13:35:08 +0000
parents f0558e69a074
children f5cd33909744
comparison
equal deleted inserted replaced
842:23d3a6eca5c3 843:e802e550a1f2
78 QString err; 78 QString err;
79 79
80 SVDEBUG << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\"): Requested rate: " << targetRate << endl; 80 SVDEBUG << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\"): Requested rate: " << targetRate << endl;
81 81
82 if (!source.isOK()) { 82 if (!source.isOK()) {
83 std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString() << std::endl; 83 cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString() << endl;
84 return 0; 84 return 0;
85 } 85 }
86 86
87 if (!source.isAvailable()) { 87 if (!source.isAvailable()) {
88 SVDEBUG << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Source not found" << endl; 88 SVDEBUG << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Source not found" << endl;
313 if (reader) { 313 if (reader) {
314 if (reader->isOK()) { 314 if (reader->isOK()) {
315 SVDEBUG << "AudioFileReaderFactory: Reader is OK" << endl; 315 SVDEBUG << "AudioFileReaderFactory: Reader is OK" << endl;
316 return reader; 316 return reader;
317 } 317 }
318 std::cerr << "AudioFileReaderFactory: Preferred reader for " 318 cerr << "AudioFileReaderFactory: Preferred reader for "
319 << "url \"" << source.getLocation().toStdString() 319 << "url \"" << source.getLocation().toStdString()
320 << "\" (content type \"" 320 << "\" (content type \""
321 << source.getContentType() << "\") failed"; 321 << source.getContentType() << "\") failed";
322 322
323 if (reader->getError() != "") { 323 if (reader->getError() != "") {
324 std::cerr << ": \"" << reader->getError() << "\""; 324 cerr << ": \"" << reader->getError() << "\"";
325 } 325 }
326 std::cerr << std::endl; 326 cerr << endl;
327 delete reader; 327 delete reader;
328 reader = 0; 328 reader = 0;
329 } 329 }
330 330
331 std::cerr << "AudioFileReaderFactory: No reader" << std::endl; 331 cerr << "AudioFileReaderFactory: No reader" << endl;
332 return reader; 332 return reader;
333 } 333 }
334 334