From 46565c1444f0e1765fa341a08cf6e3c3896ac34c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 16 Jun 2018 19:57:42 +0200 Subject: Rename name-clashing round function. --- test/resampler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/resampler.cc b/test/resampler.cc index 4d277ff..6df8b51 100644 --- a/test/resampler.cc +++ b/test/resampler.cc @@ -30,7 +30,7 @@ #define BUFSZ 500 -static float round(float a) { return a<0.5?0:1; } +static float roundoff(float a) { return a<0.5?0:1; } class test_resampler : public DGUnit @@ -66,7 +66,7 @@ public: int inidx = -1; for(int i = 0; i < BUFSZ - (int)r.getOutputSampleCount(); i++) { if(in[i] == 1.0) inidx = i; - if(round(out[i]) == 1.0) outidx = i; + if(roundoff(out[i]) == 1.0) outidx = i; //printf("in[% 4d]\t= %f\t", i, in[i]); //printf("out[% 4d]\t= %f\n", i, out[i]); } -- cgit v1.2.3