Commit a52f0187 authored by David Reid's avatar David Reid

Update profiling test to account for precision errors.

parent a8e27fc6
...@@ -342,7 +342,8 @@ int do_profiling__src__profile_individual(src_data* pBaseData, mal_uint32 sample ...@@ -342,7 +342,8 @@ int do_profiling__src__profile_individual(src_data* pBaseData, mal_uint32 sample
for (mal_uint32 iFrame = 0; iFrame < pReferenceData->frameCount; iFrame += 1) { for (mal_uint32 iFrame = 0; iFrame < pReferenceData->frameCount; iFrame += 1) {
float s0 = pReferenceData->pFrameData[iChannel][iFrame]; float s0 = pReferenceData->pFrameData[iChannel][iFrame];
float s1 = pFrameData[iChannel][iFrame]; float s1 = pFrameData[iChannel][iFrame];
if (s0 != s1) { //if (s0 != s1) {
if (fabs(s0 - s1) > 0.000001) {
printf("(Channel %d, Sample %d) %f != %f\n", iChannel, iFrame, s0, s1); printf("(Channel %d, Sample %d) %f != %f\n", iChannel, iFrame, s0, s1);
passed = MAL_FALSE; passed = MAL_FALSE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment