parent
03f63d4463
commit
69e5fd1c99
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user