summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2018-06-16 19:57:42 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2018-06-16 19:57:42 +0200
commit46565c1444f0e1765fa341a08cf6e3c3896ac34c (patch)
treec0d666c18e0451598184b711c6e2299053b14f23
parentd0a09866f4326062dc82fda43b476412e57462f2 (diff)
Rename name-clashing round function.
-rw-r--r--test/resampler.cc4
1 files changed, 2 insertions, 2 deletions
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]);
}