diff data/model/WritableWaveFileModel.cpp @ 1086:9f4505ac9072

Tidy dense time-value model API a bit; add first simple unit test for FFT model
author Chris Cannam
date Wed, 10 Jun 2015 17:06:02 +0100
parents 0fd3661bcfff
children 4d9816ba0ebe b9faee02afa5
line wrap: on
line diff
--- a/data/model/WritableWaveFileModel.cpp	Wed Jun 10 14:44:09 2015 +0100
+++ b/data/model/WritableWaveFileModel.cpp	Wed Jun 10 17:06:02 2015 +0100
@@ -178,20 +178,12 @@
 }
 
 sv_frame_t
-WritableWaveFileModel::getData(int channel, sv_frame_t start, sv_frame_t count,
-                               double *buffer) const
+WritableWaveFileModel::getMultiChannelData(int fromchannel, int tochannel,
+                                           sv_frame_t start, sv_frame_t count,
+                                           float **buffers) const
 {
     if (!m_model || m_model->getChannelCount() == 0) return 0;
-    return m_model->getData(channel, start, count, buffer);
-}
-
-sv_frame_t
-WritableWaveFileModel::getData(int fromchannel, int tochannel,
-                               sv_frame_t start, sv_frame_t count,
-                               float **buffers) const
-{
-    if (!m_model || m_model->getChannelCount() == 0) return 0;
-    return m_model->getData(fromchannel, tochannel, start, count, buffers);
+    return m_model->getMultiChannelData(fromchannel, tochannel, start, count, buffers);
 }    
 
 int