Mercurial > hg > svcore
diff data/fileio/CoreAudioFileReader.cpp @ 1145:9c7633904ec2
OSX build stuff
author | Chris Cannam |
---|---|
date | Wed, 04 Nov 2015 14:18:22 +0000 |
parents | a1cd5abcb38b |
children | 0a9193dc136b |
line wrap: on
line diff
--- a/data/fileio/CoreAudioFileReader.cpp Wed Nov 04 12:06:12 2015 +0000 +++ b/data/fileio/CoreAudioFileReader.cpp Wed Nov 04 14:18:22 2015 +0000 @@ -57,7 +57,7 @@ } CoreAudioFileReader::CoreAudioFileReader(FileSource source, - DecodeMode decodeMode, + DecodeMode /* decodeMode */, CacheMode mode, sv_samplerate_t targetRate, bool normalised, @@ -180,7 +180,7 @@ // buffers are interleaved unless specified otherwise addSamplesToDecodeCache((float *)m_d->buffer.mBuffers[0].mData, framesRead); - if (framesRead < m_d->blockSize) break; + if ((int)framesRead < m_d->blockSize) break; } finishDecodeCache(); @@ -196,7 +196,7 @@ if (m_d->valid) { ExtAudioFileDispose(m_d->file); - delete[] m_d->buffer.mBuffers[0].mData; + delete[] (float *)(m_d->buffer.mBuffers[0].mData); } delete m_d;