Mercurial > hg > svcore
comparison data/model/WritableWaveFileModel.cpp @ 1326:54af1e21705c 3.0-integration
Update to use bqvec allocator for float vectors
author | Chris Cannam |
---|---|
date | Tue, 13 Dec 2016 15:23:21 +0000 |
parents | 3aea4f7617bb |
children | dc56e8a13e44 |
comparison
equal
deleted
inserted
replaced
1325:3aea4f7617bb | 1326:54af1e21705c |
---|---|
186 { | 186 { |
187 // SVDEBUG << "WritableWaveFileModel::getFrameCount: count = " << m_frameCount << endl; | 187 // SVDEBUG << "WritableWaveFileModel::getFrameCount: count = " << m_frameCount << endl; |
188 return m_frameCount; | 188 return m_frameCount; |
189 } | 189 } |
190 | 190 |
191 vector<float> | 191 floatvec_t |
192 WritableWaveFileModel::getData(int channel, sv_frame_t start, sv_frame_t count) const | 192 WritableWaveFileModel::getData(int channel, sv_frame_t start, sv_frame_t count) const |
193 { | 193 { |
194 if (!m_model || m_model->getChannelCount() == 0) return {}; | 194 if (!m_model || m_model->getChannelCount() == 0) return {}; |
195 return m_model->getData(channel, start, count); | 195 return m_model->getData(channel, start, count); |
196 } | 196 } |
197 | 197 |
198 vector<vector<float>> | 198 vector<floatvec_t> |
199 WritableWaveFileModel::getMultiChannelData(int fromchannel, int tochannel, | 199 WritableWaveFileModel::getMultiChannelData(int fromchannel, int tochannel, |
200 sv_frame_t start, sv_frame_t count) const | 200 sv_frame_t start, sv_frame_t count) const |
201 { | 201 { |
202 if (!m_model || m_model->getChannelCount() == 0) return {}; | 202 if (!m_model || m_model->getChannelCount() == 0) return {}; |
203 return m_model->getMultiChannelData(fromchannel, tochannel, start, count); | 203 return m_model->getMultiChannelData(fromchannel, tochannel, start, count); |