diff data/fileio/WavFileWriter.cpp @ 300:5877d68815c7

* Change WaveFileModel API from getValues(start,end) to getData(start,count). It's much less error-prone to pass in frame counts instead of start/end locations. Should have done this ages ago. This closes #1794563. * Add option to apply a transform to only the selection region, instead of the whole audio. * (to make the above work properly) Add start frame offset to wave models
author Chris Cannam
date Mon, 01 Oct 2007 13:48:38 +0000
parents 91fdc752e540
children 920e3880f7b4
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.cpp	Fri Sep 28 16:15:06 2007 +0000
+++ b/data/fileio/WavFileWriter.cpp	Mon Oct 01 13:48:38 2007 +0000
@@ -103,7 +103,7 @@
 	    size_t n = std::min(bs, f1 - f);
 
 	    for (int c = 0; c < int(m_channels); ++c) {
-		source->getValues(c, f, f + n, ub);
+		source->getData(c, f, n, ub);
 		for (size_t i = 0; i < n; ++i) {
 		    ib[i * m_channels + c] = ub[i];
 		}