summaryrefslogtreecommitdiff
path: root/test/resampler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/resampler.cc')
-rw-r--r--test/resampler.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/resampler.cc b/test/resampler.cc
index 9f1d6e0..fa52cbf 100644
--- a/test/resampler.cc
+++ b/test/resampler.cc
@@ -47,10 +47,10 @@ public:
void resampling()
{
CHResampler r;
- CPPUNIT_ASSERT_EQUAL(1.0, r.ratio());
+ CPPUNIT_ASSERT_EQUAL(1.0, r.getRatio());
r.setup(44100, 48000);
- CPPUNIT_ASSERT_EQUAL(44100.0/48000.0, r.ratio());
+ CPPUNIT_ASSERT_EQUAL(44100.0/48000.0, r.getRatio());
float in[BUFSZ];
for(int i = 0; i < BUFSZ; i++) in[i] = 0;//(float)i/(float)BUFSZ;
@@ -83,15 +83,15 @@ public:
void resampling_buffer_sizes()
{
CHResampler r;
- CPPUNIT_ASSERT_EQUAL(1.0, r.ratio());
+ CPPUNIT_ASSERT_EQUAL(1.0, r.getRatio());
double infs = 24000;
double outfs = 48000;
r.setup(infs, outfs);
- CPPUNIT_ASSERT_EQUAL(infs / outfs, r.ratio());
+ CPPUNIT_ASSERT_EQUAL(infs / outfs, r.getRatio());
float in[BUFSZ];
- float out[(int)(BUFSZ / r.ratio())];
+ float out[(int)(BUFSZ / r.getRatio())];
// Preload resampler
r.setOutputSamples(out, 1);