# HG changeset patch # User Chris Cannam # Date 1483969899 0 # Node ID 97deefd3806058537f4e9dc64340aa74f498f0ac # Parent 2001fe23e449e4004ef0f0450ba8805e28d479d9 Further win32 build updates diff -r 2001fe23e449 -r 97deefd38060 data/fileio/CodedAudioFileReader.cpp --- a/data/fileio/CodedAudioFileReader.cpp Mon Jan 09 11:53:06 2017 +0000 +++ b/data/fileio/CodedAudioFileReader.cpp Mon Jan 09 13:51:39 2017 +0000 @@ -136,7 +136,7 @@ if (m_fileRate == 0) { SVDEBUG << "CodedAudioFileReader::initialiseDecodeCache: ERROR: File sample rate unknown (bug in subclass implementation?)" << endl; - throw FileOperationFailed("(coded file)", "File sample rate unknown (bug in subclass implementation?)"); + throw FileOperationFailed("(coded file)", "sample rate unknown (bug in subclass implementation?)"); } if (m_sampleRate == 0) { m_sampleRate = m_fileRate; diff -r 2001fe23e449 -r 97deefd38060 data/fileio/MP3FileReader.cpp --- a/data/fileio/MP3FileReader.cpp Mon Jan 09 11:53:06 2017 +0000 +++ b/data/fileio/MP3FileReader.cpp Mon Jan 09 13:51:39 2017 +0000 @@ -475,6 +475,10 @@ m_fileRate = pcm->samplerate; m_channelCount = channels; + SVDEBUG << "MP3FileReader::accept: file rate = " << pcm->samplerate + << ", channel count = " << channels << ", about to init " + << "decode cache" << endl; + initialiseDecodeCache(); if (m_cacheMode == CacheInTemporaryFile) { @@ -504,6 +508,9 @@ } if (!isDecodeCacheInitialised()) { + SVDEBUG << "MP3FileReader::accept: fallback case: file rate = " << pcm->samplerate + << ", channel count = " << channels << ", about to init " + << "decode cache" << endl; initialiseDecodeCache(); }