Mercurial > hg > svcore
comparison data/fileio/AudioFileReaderFactory.cpp @ 686:b4a8d8221eaf debug-output
Remove most toStdString calls (no longer needed, with debug header)
author | Chris Cannam |
---|---|
date | Thu, 12 May 2011 17:31:24 +0100 |
parents | 1c8898816fd0 |
children | 06f13a3b9e9e |
comparison
equal
deleted
inserted
replaced
685:99222d4bfc78 | 686:b4a8d8221eaf |
---|---|
71 AudioFileReaderFactory::create(FileSource source, size_t targetRate, bool threading, | 71 AudioFileReaderFactory::create(FileSource source, size_t targetRate, bool threading, |
72 ProgressReporter *reporter) | 72 ProgressReporter *reporter) |
73 { | 73 { |
74 QString err; | 74 QString err; |
75 | 75 |
76 // std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\"): Requested rate: " << targetRate << std::endl; | 76 // std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\"): Requested rate: " << targetRate << std::endl; |
77 | 77 |
78 if (!source.isOK()) { | 78 if (!source.isOK()) { |
79 std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString().toStdString() << std::endl; | 79 std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Failed to retrieve source (transmission error?): " << source.getErrorString() << std::endl; |
80 return 0; | 80 return 0; |
81 } | 81 } |
82 | 82 |
83 if (!source.isAvailable()) { | 83 if (!source.isAvailable()) { |
84 std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation().toStdString() << "\": Source not found" << std::endl; | 84 std::cerr << "AudioFileReaderFactory::createReader(\"" << source.getLocation() << "\": Source not found" << std::endl; |
85 return 0; | 85 return 0; |
86 } | 86 } |
87 | 87 |
88 AudioFileReader *reader = 0; | 88 AudioFileReader *reader = 0; |
89 | 89 |
270 return reader; | 270 return reader; |
271 } | 271 } |
272 std::cerr << "AudioFileReaderFactory: Preferred reader for " | 272 std::cerr << "AudioFileReaderFactory: Preferred reader for " |
273 << "url \"" << source.getLocation().toStdString() | 273 << "url \"" << source.getLocation().toStdString() |
274 << "\" (content type \"" | 274 << "\" (content type \"" |
275 << source.getContentType().toStdString() << "\") failed"; | 275 << source.getContentType() << "\") failed"; |
276 | 276 |
277 if (reader->getError() != "") { | 277 if (reader->getError() != "") { |
278 std::cerr << ": \"" << reader->getError().toStdString() << "\""; | 278 std::cerr << ": \"" << reader->getError() << "\""; |
279 } | 279 } |
280 std::cerr << std::endl; | 280 std::cerr << std::endl; |
281 delete reader; | 281 delete reader; |
282 reader = 0; | 282 reader = 0; |
283 } | 283 } |