Mercurial > hg > svcore
comparison data/fileio/test/AudioFileReaderTest.h @ 1323:4dbb7a7c9c28 3.0-integration
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Fri, 09 Dec 2016 19:04:33 +0000 |
parents | af0ccbb3e3d7 |
children | 54af1e21705c |
comparison
equal
deleted
inserted
replaced
1322:e939a365e4d2 | 1323:4dbb7a7c9c28 |
---|---|
457 | 457 |
458 // and check for spurious material at end | 458 // and check for spurious material at end |
459 | 459 |
460 for (sv_frame_t i = refFrames; i + offset < read; ++i) { | 460 for (sv_frame_t i = refFrames; i + offset < read; ++i) { |
461 sv_frame_t ix = i + offset; | 461 sv_frame_t ix = i + offset; |
462 float quiet = 0.1; //!!! allow some ringing - but let's come back to this, it should tail off | 462 float quiet = 0.1f; //!!! allow some ringing - but let's come back to this, it should tail off |
463 float mag = fabsf(test[ix * channels + c]); | 463 float mag = fabsf(test[ix * channels + c]); |
464 if (mag > quiet) { | 464 if (mag > quiet) { |
465 cerr << "ERROR: audiofile " << audiofile << " contains spurious data after end of reference (found sample " << test[ix * channels + c] << " at index " << ix << " of channel " << c << " after reference+offset ended at " << refFrames+offset << ")" << endl; | 465 cerr << "ERROR: audiofile " << audiofile << " contains spurious data after end of reference (found sample " << test[ix * channels + c] << " at index " << ix << " of channel " << c << " after reference+offset ended at " << refFrames+offset << ")" << endl; |
466 QVERIFY(mag < quiet); | 466 QVERIFY(mag < quiet); |
467 } | 467 } |