Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1525:a92e94215863 | 1526:8988b27ebf38 |
---|---|
202 | 202 |
203 bool | 203 bool |
204 WavFileWriter::putInterleavedFrames(const floatvec_t &frames) | 204 WavFileWriter::putInterleavedFrames(const floatvec_t &frames) |
205 { | 205 { |
206 sv_frame_t count = frames.size() / m_channels; | 206 sv_frame_t count = frames.size() / m_channels; |
207 float **samples = breakfastquay::allocate_channels<float>(m_channels, count); | 207 float **samples = |
208 breakfastquay::v_deinterleave(samples, frames.data(), m_channels, count); | 208 breakfastquay::allocate_channels<float>(m_channels, count); |
209 breakfastquay::v_deinterleave | |
210 (samples, frames.data(), m_channels, int(count)); | |
209 bool result = writeSamples(samples, count); | 211 bool result = writeSamples(samples, count); |
210 breakfastquay::deallocate_channels(samples, m_channels); | 212 breakfastquay::deallocate_channels(samples, m_channels); |
211 return result; | 213 return result; |
212 } | 214 } |
213 | 215 |