comparison data/fileio/CoreAudioFileReader.cpp @ 1315:af0ccbb3e3d7 3.0-integration

Further updates to tests and debug output for file reading on OSX
author Chris Cannam <cannam@all-day-breakfast.com>
date Fri, 02 Dec 2016 09:13:52 +0000
parents 0a9193dc136b
children c380e56c95f5
comparison
equal deleted inserted replaced
1314:00cae2d5ee7e 1315:af0ccbb3e3d7
123 } 123 }
124 124
125 m_channelCount = m_d->asbd.mChannelsPerFrame; 125 m_channelCount = m_d->asbd.mChannelsPerFrame;
126 m_fileRate = m_d->asbd.mSampleRate; 126 m_fileRate = m_d->asbd.mSampleRate;
127 127
128 cerr << "CoreAudioReadStream: " << m_channelCount << " channels, " << m_fileRate << " Hz" << endl; 128 SVDEBUG << "CoreAudioFileReader: " << m_channelCount << " channels, " << m_fileRate << " Hz" << endl;
129 129
130 m_d->asbd.mFormatID = kAudioFormatLinearPCM; 130 m_d->asbd.mFormatID = kAudioFormatLinearPCM;
131 m_d->asbd.mFormatFlags = 131 m_d->asbd.mFormatFlags =
132 kAudioFormatFlagIsFloat | 132 kAudioFormatFlagIsFloat |
133 kAudioFormatFlagIsPacked | 133 kAudioFormatFlagIsPacked |
190 } 190 }
191 191
192 192
193 CoreAudioFileReader::~CoreAudioFileReader() 193 CoreAudioFileReader::~CoreAudioFileReader()
194 { 194 {
195 cerr << "CoreAudioFileReader::~CoreAudioFileReader" << endl; 195 SVDEBUG << "CoreAudioFileReader::~CoreAudioFileReader" << endl;
196 196
197 if (m_d->valid) { 197 if (m_d->valid) {
198 ExtAudioFileDispose(m_d->file); 198 ExtAudioFileDispose(m_d->file);
199 delete[] (float *)(m_d->buffer.mBuffers[0].mData); 199 delete[] (float *)(m_d->buffer.mBuffers[0].mData);
200 } 200 }