Skip to content

Commit

Permalink
Simplify filter_tester2.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Aug 26, 2023
1 parent 34ef3d6 commit 94d84eb
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions tools/benchmark/ciaramella.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,24 +336,20 @@ static void filter_tester2(dsp* faust_dsp, dsp* ciaramella_dsp)

dsp* noise_dsp = noise_factory->createDSPInstance();
assert(noise_dsp);

// Create the parallelizer with both filters
dsp* parallel_dsp = createDSPParallelizer(ciaramella_dsp, faust_dsp, error_msg);

createLibContext();
{
// Create the parallelizer with both filters
dsp* parallel_dsp = createDSPParallelizer(ciaramella_dsp, faust_dsp, error_msg);

// Split the noise test signal in both filters
dsp* splitter = createDSPSplitter(noise_dsp, parallel_dsp, error_msg);

// Render the audio
dummyaudio audio(SAMPLE_RATE, 128, 1, 128);
audio.init("Test", splitter);

// Audio real-time processing
audio.start();
audio.stop();
}
destroyLibContext();
// Split the noise test signal in both filters
dsp* splitter = createDSPSplitter(noise_dsp, parallel_dsp, error_msg);

// Render the audio
dummyaudio audio(SAMPLE_RATE, 128, 1, 128);
audio.init("Test", splitter);

// Audio real-time processing
audio.start();
audio.stop();

delete noise_dsp;
deleteDSPFactory(noise_factory);
Expand Down

0 comments on commit 94d84eb

Please sign in to comment.