diff data/fileio/CoreAudioFileReader.cpp @ 759:a43acbe3988f

More refinement in audiofile read tests and implementation
author Chris Cannam
date Fri, 08 Mar 2013 21:35:46 +0000
parents dc6c0e50724c
children b6bb0ecb7958
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp	Fri Mar 08 20:05:49 2013 +0000
+++ b/data/fileio/CoreAudioFileReader.cpp	Fri Mar 08 21:35:46 2013 +0000
@@ -74,7 +74,7 @@
 
     Profiler profiler("CoreAudioFileReader::CoreAudioFileReader", true);
 
-    std::cerr << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << std::endl;
+    SVDEBUG << "CoreAudioFileReader: path is \"" << m_path.toStdString() << "\"" << endl;
 
     QByteArray ba = m_path.toLocal8Bit();
 
@@ -120,9 +120,7 @@
     m_channelCount = m_d->asbd.mChannelsPerFrame;
     m_fileRate = m_d->asbd.mSampleRate;
 
-    std::cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_sampleRate << " Hz" << std::endl;
-
-    m_d->asbd.mSampleRate = getSampleRate();
+    std::cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_fileRate << " Hz" << std::endl;
 
     m_d->asbd.mFormatID = kAudioFormatLinearPCM;
     m_d->asbd.mFormatFlags =