start MixingConsole fixing

pull/495/head
Vincent GAUCHE 2 years ago
parent 104c3a5a1f
commit 00ab3957d0
  1. 5
      src/test/test_fx_mixing_console.cpp
  2. 8
      src/test/test_fx_mixing_console_unitary.cpp

@ -224,7 +224,7 @@ TEST(MixingConsole, ZeroSamplesTest)
float32_t samples[] = {0.0f, 0.0f, 0.0f, 0.0f};
mixer.setInputSampleBuffer(0, samples);
mixer.preProcessInputSampleBuffer(0);
mixer.preProcessInputSampleBuffer(0, 4);
ASSERT_EQ(0, FULL_INSPECT((&mixer), true));
mixer.setSendLevel(0, MixerOutput::MainOutput, 1.0f);
@ -279,7 +279,7 @@ TEST(MixingConsole, DryProcessing)
for(size_t i = 0; i < StereoChannels::kNumChannels; ++i) memset(out[i], 0, length * sizeof(float32_t));
mixer.setInputSampleBuffer(0, in);
mixer.preProcessInputSampleBuffer(0);
mixer.preProcessInputSampleBuffer(0, 2);
ASSERT_EQ(0, INSPECT((&mixer), fullInspector));
mixer.process(
@ -396,6 +396,7 @@ TEST(MixingConsole, StandardUsageProcessing)
mixer.setReturnLevel(MixerOutput::FX_Delay, MixerOutput::MainOutput, 0.3f);
mixer.setInputSampleBuffer(0, inSamples[0], inSamples[1]);
mixer.preProcessInputSampleBuffer(0, size);
mixer.process(outSamples[0], outSamples[1]);
ASSERT_EQ(0, INSPECT((&mixer), fullInspector));
saveWaveFile(getResultFile(full_test_name + ".wav", true), outSamples[0], outSamples[1], size, static_cast<unsigned>(SAMPLING_FREQUENCY), 16);

@ -29,7 +29,7 @@ TEST(MixingConsole, ShortBuffer)
memset(outSamples[1], 0, size * sizeof(float32_t));
mixer->setInputSampleBuffer(0, inSamples);
mixer->preProcessInputSampleBuffer(0);
mixer->preProcessInputSampleBuffer(0, size);
ASSERT_EQ(0, FULL_INSPECT(mixer, true)) << full_test_name << " Mixer.setInputSampleBuffer";
mixer->process(outSamples[0], outSamples[1]);
@ -72,7 +72,7 @@ TEST(MixingConsole, ReverberatorShortBuffer)
memset(outSamples[1], 0, size * sizeof(float32_t));
mixer->setInputSampleBuffer(0, inSamples);
mixer->preProcessInputSampleBuffer(0);
mixer->preProcessInputSampleBuffer(0, size);
ASSERT_EQ(0, FULL_INSPECT(mixer, true)) << full_test_name << " Mixer.setInputSampleBuffer";
mixer->process(outSamples[0], outSamples[1]);
@ -100,7 +100,7 @@ TEST(MixingConsole, DrySamplesBoundariesTest)
mixer->setSendLevel(0, MixerOutput::MainOutput, 1.0f);
mixer->setInputSampleBuffer(0, inSamples[0]);
mixer->preProcessInputSampleBuffer(0);
mixer->preProcessInputSampleBuffer(0, size);
float32_t** outSamples = new float32_t*[2];
outSamples[0] = new float32_t[size];
@ -161,7 +161,7 @@ TEST(MixingConsole, ReverberatorSamplesBoundariesTest)
mixer->getReverberator()->setLP(0.7f);
mixer->setInputSampleBuffer(0, inSamples[0]);
mixer->preProcessInputSampleBuffer(0);
mixer->preProcessInputSampleBuffer(0, size);
mixer->process(outSamples[0], outSamples[1]);
ASSERT_EQ(0, FULL_INSPECT2(mixer, true, full_test_name + "Mixer.process")) << full_test_name << " Mixer.process";

Loading…
Cancel
Save