comparison data/fileio/test/AudioFileReaderTest.h @ 968:6b931eeba385

clarify
author Chris Cannam
date Wed, 03 Sep 2014 11:04:41 +0100
parents e06f03013f46
children a1cd5abcb38b
comparison
equal deleted inserted replaced
967:0a35adfb7b16 968:6b931eeba385
167 float diff = fabsf(test[(i + offset) * channels + c] - 167 float diff = fabsf(test[(i + offset) * channels + c] -
168 reference[i * channels + c]); 168 reference[i * channels + c]);
169 totdiff += diff; 169 totdiff += diff;
170 // in edge areas, record this only if it exceeds edgeLimit 170 // in edge areas, record this only if it exceeds edgeLimit
171 if (i < edgeSize || i + edgeSize >= read - offset) { 171 if (i < edgeSize || i + edgeSize >= read - offset) {
172 if (diff > edgeLimit) { 172 if (diff > edgeLimit && diff > maxdiff) {
173 maxdiff = diff; 173 maxdiff = diff;
174 maxAt = i; 174 maxAt = i;
175 } 175 }
176 } else { 176 } else {
177 if (diff > maxdiff) { 177 if (diff > maxdiff) {