diff --git a/libs/audiographer/tests/general/normalizer_test.cc b/libs/audiographer/tests/general/normalizer_test.cc index 74df980028..c06330557b 100644 --- a/libs/audiographer/tests/general/normalizer_test.cc +++ b/libs/audiographer/tests/general/normalizer_test.cc @@ -27,7 +27,7 @@ class NormalizerTest : public CppUnit::TestFixture float target = 0.0; random_data = TestUtils::init_random_data(samples, 0.5); - normalizer.reset (new Normalizer(target)); + normalizer.reset (new Normalizer(target, samples)); peak_reader.reset (new PeakReader()); sink.reset (new VectorSink()); @@ -35,7 +35,6 @@ class NormalizerTest : public CppUnit::TestFixture peak_reader->process (c); float peak = peak_reader->get_peak(); - normalizer->alloc_buffer (samples); normalizer->set_peak (peak); normalizer->add_output (sink); normalizer->process (c);