comparison data/fileio/test/AudioFileReaderTest.h @ 980:6e6da0636e5e tonioni

Merge from default branch
author Chris Cannam
date Tue, 09 Sep 2014 16:36:21 +0100
parents 6b931eeba385
children a1cd5abcb38b
comparison
equal deleted inserted replaced
954:35b05cac32d0 980:6e6da0636e5e
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) {