diff data/fileio/DecodingWavFileReader.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 4704e834d0f9
children 70e172e6cc59 f8e3dcbafb4d
line wrap: on
line diff
--- a/data/fileio/DecodingWavFileReader.cpp	Tue Dec 13 12:03:48 2016 +0000
+++ b/data/fileio/DecodingWavFileReader.cpp	Tue Dec 13 15:23:21 2016 +0000
@@ -71,7 +71,7 @@
         sv_frame_t blockSize = 16384;
         sv_frame_t total = m_original->getFrameCount();
 
-        vector<float> block;
+        floatvec_t block;
 
         for (sv_frame_t i = 0; i < total; i += blockSize) {
 
@@ -128,7 +128,7 @@
     sv_frame_t blockSize = 16384;
     sv_frame_t total = m_reader->m_original->getFrameCount();
     
-    vector<float> block;
+    floatvec_t block;
     
     for (sv_frame_t i = 0; i < total; i += blockSize) {
         
@@ -151,7 +151,7 @@
 } 
 
 void
-DecodingWavFileReader::addBlock(const vector<float> &frames)
+DecodingWavFileReader::addBlock(const floatvec_t &frames)
 {
     addSamplesToDecodeCache(frames);