Mercurial > hg > svcore
diff data/fileio/WavFileWriter.cpp @ 1526:8988b27ebf38
Avoid compiler warning
author | Chris Cannam |
---|---|
date | Fri, 14 Sep 2018 15:32:43 +0100 |
parents | 954d0cf29ca7 |
children | 70e172e6cc59 |
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.cpp Fri Sep 14 14:47:46 2018 +0100 +++ b/data/fileio/WavFileWriter.cpp Fri Sep 14 15:32:43 2018 +0100 @@ -204,8 +204,10 @@ WavFileWriter::putInterleavedFrames(const floatvec_t &frames) { sv_frame_t count = frames.size() / m_channels; - float **samples = breakfastquay::allocate_channels<float>(m_channels, count); - breakfastquay::v_deinterleave(samples, frames.data(), m_channels, count); + float **samples = + breakfastquay::allocate_channels<float>(m_channels, count); + breakfastquay::v_deinterleave + (samples, frames.data(), m_channels, int(count)); bool result = writeSamples(samples, count); breakfastquay::deallocate_channels(samples, m_channels); return result;