comparison 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
comparison
equal deleted inserted replaced
754:26636c46bcdf 755:dc6c0e50724c
116 m_error = "CoreAudioReadStream: Error in getting basic description: code " + codestr(m_d->err); 116 m_error = "CoreAudioReadStream: Error in getting basic description: code " + codestr(m_d->err);
117 return; 117 return;
118 } 118 }
119 119
120 m_channelCount = m_d->asbd.mChannelsPerFrame; 120 m_channelCount = m_d->asbd.mChannelsPerFrame;
121 m_sampleRate = m_d->asbd.mSampleRate; 121 m_fileRate = m_d->asbd.mSampleRate;
122 122
123 std::cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_sampleRate << " Hz" << std::endl; 123 std::cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_sampleRate << " Hz" << std::endl;
124 124
125 m_d->asbd.mSampleRate = getSampleRate(); 125 m_d->asbd.mSampleRate = getSampleRate();
126 126