Mercurial > hg > svapp
comparison framework/SVFileReader.cpp @ 76:2da0999dac1d
* better progress reporting in FileSource
* fix set-to-default for audio dials with mappers
author | Chris Cannam |
---|---|
date | Fri, 04 Jan 2008 17:08:10 +0000 |
parents | 4aa40182321f |
children | 58bfaaed07ed |
comparison
equal
deleted
inserted
replaced
75:d184cd01760c | 76:2da0999dac1d |
---|---|
428 FileFinder *ff = FileFinder::getInstance(); | 428 FileFinder *ff = FileFinder::getInstance(); |
429 QString originalPath = attributes.value("file"); | 429 QString originalPath = attributes.value("file"); |
430 QString path = ff->find(FileFinder::AudioFile, | 430 QString path = ff->find(FileFinder::AudioFile, |
431 originalPath, m_location); | 431 originalPath, m_location); |
432 | 432 |
433 FileSource file(path, true); | 433 FileSource file(path, FileSource::ProgressDialog); |
434 file.waitForStatus(); | 434 file.waitForStatus(); |
435 | 435 |
436 if (!file.isOK()) { | 436 if (!file.isOK()) { |
437 std::cerr << "SVFileReader::readModel: Failed to retrieve file \"" << path.toStdString() << "\" for wave file model: " << file.getErrorString().toStdString() << std::endl; | 437 std::cerr << "SVFileReader::readModel: Failed to retrieve file \"" << path.toStdString() << "\" for wave file model: " << file.getErrorString().toStdString() << std::endl; |
438 } else if (!file.isAvailable()) { | 438 } else if (!file.isAvailable()) { |