13
0

Fix audiographer normalizer test

Build broken in 75829d20f2.
This commit is contained in:
David Robillard 2021-04-13 14:36:56 -04:00
parent 03f63d4463
commit 69e5fd1c99

View File

@ -27,7 +27,7 @@ class NormalizerTest : public CppUnit::TestFixture
float target = 0.0; float target = 0.0;
random_data = TestUtils::init_random_data(samples, 0.5); 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()); peak_reader.reset (new PeakReader());
sink.reset (new VectorSink<float>()); sink.reset (new VectorSink<float>());
@ -35,7 +35,6 @@ class NormalizerTest : public CppUnit::TestFixture
peak_reader->process (c); peak_reader->process (c);
float peak = peak_reader->get_peak(); float peak = peak_reader->get_peak();
normalizer->alloc_buffer (samples);
normalizer->set_peak (peak); normalizer->set_peak (peak);
normalizer->add_output (sink); normalizer->add_output (sink);
normalizer->process (c); normalizer->process (c);