From 11fee241287c3d26a7dc7a24fe68270a90ee0e73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gl=C3=B6ckner?= Date: Tue, 29 Mar 2016 11:31:10 +0200 Subject: fixed test code referring API change --- test/resampler.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test') 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); -- cgit v1.2.3