# HG changeset patch # User Chris Cannam # Date 1362676678 0 # Node ID 26636c46bcdf149e489e2a4b4932ddd0c0d67278 # Parent fb6313da1df623e95f5224edbcdbd7a856fe1e62 If a reader doesn't provide a file sample rate, blow up -- don't just assume diff -r fb6313da1df6 -r 26636c46bcdf data/fileio/CodedAudioFileReader.cpp --- a/data/fileio/CodedAudioFileReader.cpp Tue Dec 11 13:07:40 2012 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Thu Mar 07 17:17:58 2013 +0000 @@ -96,8 +96,8 @@ SVDEBUG << "CodedAudioFileReader::initialiseDecodeCache: file rate = " << m_fileRate << endl; if (m_fileRate == 0) { - SVDEBUG << "CodedAudioFileReader::initialiseDecodeCache: ERROR: File sample rate unknown (bug in subclass implementation?)" << endl; - m_fileRate = 48000; // got to have something + std::cerr << "CodedAudioFileReader::initialiseDecodeCache: ERROR: File sample rate unknown (bug in subclass implementation?)" << std::endl; + throw FileOperationFailed("(coded file)", "File sample rate unknown (bug in subclass implementation?)"); } if (m_sampleRate == 0) { m_sampleRate = m_fileRate;