diff data/fileio/CoreAudioFileReader.cpp @ 755:dc6c0e50724c 2.0.1_osx

Fix mixup between file rate and sample rate
author Chris Cannam
date Thu, 07 Mar 2013 17:18:08 +0000
parents 0f8a6dda8ac1
children a43acbe3988f
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp	Thu Mar 07 17:17:58 2013 +0000
+++ b/data/fileio/CoreAudioFileReader.cpp	Thu Mar 07 17:18:08 2013 +0000
@@ -118,7 +118,7 @@
     }
 	
     m_channelCount = m_d->asbd.mChannelsPerFrame;
-    m_sampleRate = m_d->asbd.mSampleRate;
+    m_fileRate = m_d->asbd.mSampleRate;
 
     std::cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_sampleRate << " Hz" << std::endl;