summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristian Glöckner <cgloeckner@freenet.de>2016-03-29 11:31:10 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2016-03-31 17:35:47 +0200
commit11fee241287c3d26a7dc7a24fe68270a90ee0e73 (patch)
tree8744748ddc947ba79fbc1b1d8922fafc5c9d59ec /test
parent524ec1f528fd91d1d40499ec8b10e3f31e89aeff (diff)
fixed test code referring API change
Diffstat (limited to 'test')
-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);