diff data/fileio/WavFileWriter.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 b3cb0edc25cd
line wrap: on
line diff
--- a/data/fileio/WavFileWriter.cpp	Tue Dec 13 12:03:48 2016 +0000
+++ b/data/fileio/WavFileWriter.cpp	Tue Dec 13 15:23:21 2016 +0000
@@ -141,10 +141,10 @@
 	for (sv_frame_t f = f0; f < f1; f += bs) {
 	    
 	    sv_frame_t n = min(bs, f1 - f);
-            vector<float> interleaved(n * m_channels, 0.f);
+            floatvec_t interleaved(n * m_channels, 0.f);
 
 	    for (int c = 0; c < int(m_channels); ++c) {
-                vector<float> chanbuf = source->getData(c, f, n);
+                auto chanbuf = source->getData(c, f, n);
 		for (int i = 0; in_range_for(chanbuf, i); ++i) {
 		    interleaved[i * m_channels + c] = chanbuf[i];
 		}