comparison data/fileio/test/AudioFileReaderTest.h @ 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 4dbb7a7c9c28
children 75ad55315db4
comparison
equal deleted inserted replaced
1325:3aea4f7617bb 1326:54af1e21705c
270 // The reader should give us exactly the expected number of 270 // The reader should give us exactly the expected number of
271 // frames, except for mp3/aac files. We ask for quite a lot 271 // frames, except for mp3/aac files. We ask for quite a lot
272 // more, though, so we can (a) check that we only get the 272 // more, though, so we can (a) check that we only get the
273 // expected number back (if this is not mp3/aac) or (b) take 273 // expected number back (if this is not mp3/aac) or (b) take
274 // into account silence at beginning and end (if it is). 274 // into account silence at beginning and end (if it is).
275 vector<float> test = reader->getInterleavedFrames(0, refFrames + 5000); 275 floatvec_t test = reader->getInterleavedFrames(0, refFrames + 5000);
276 sv_frame_t read = test.size() / channels; 276 sv_frame_t read = test.size() / channels;
277 277
278 bool perceptual = (extension == "mp3" || 278 bool perceptual = (extension == "mp3" ||
279 extension == "aac" || 279 extension == "aac" ||
280 extension == "m4a"); 280 extension == "m4a");