Skip to content

Commit

Permalink
Test classInit before DSP allocation in llvm-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
sletz committed Apr 15, 2023
1 parent a1602f1 commit aa3f4ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/llvm-tests/llvm-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,16 @@ static void Test(const char* dspFileAux)
cerr << "Cannot create factory : " << error_msg;
exit(EXIT_FAILURE);
}

// Static tables initialisation
factory->classInit(44100);

dsp* DSP = factory->createDSPInstance();
if (!DSP) {
cerr << "Cannot create instance "<< endl;
exit(EXIT_FAILURE);
}

// Static tables initilisation
factory->classInit(44100);


// Use "manager" mode to test 'classInit'
dummyaudio audio(44100, 512, 1 , 512 , true);
if (!audio.init("FaustDSP", DSP)) {
Expand Down

0 comments on commit aa3f4ed

Please sign in to comment.