Skip to content

Commit

Permalink
rtcheck: Added rtcheck to all processBlock calls at level 10
Browse files Browse the repository at this point in the history
  • Loading branch information
drowaudio committed Jun 12, 2024
1 parent d0eaff1 commit a759fd6
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions Source/tests/BasicTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#include "../PluginTests.h"
#include "../TestUtilities.h"
#include "../RTCheck.h"

#include <future>
#include <thread>

Expand Down Expand Up @@ -156,7 +158,12 @@ struct EditorWhilstProcessingTest : public PluginTest
while (shouldProcess)
{
fillNoise (ab);
instance.processBlock (ab, mb);

{
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
instance.processBlock (ab, mb);
}

mb.clear();

threadStartedEvent.signal();
Expand Down Expand Up @@ -230,7 +237,12 @@ struct AudioProcessingTest : public PluginTest
addNoteOff (mb, noteChannel, noteNumber, 0);

fillNoise (ab);
instance.processBlock (ab, mb);

{
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
instance.processBlock (ab, mb);
}

mb.clear();

ut.expectEquals (countNaNs (ab), 0, "NaNs found in buffer");
Expand Down Expand Up @@ -414,7 +426,12 @@ struct AutomationTest : public PluginTest
numSamplesDone,
numSamplesThisTime);
fillNoise (subBuffer);
instance.processBlock (subBuffer, mb);

{
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
instance.processBlock (subBuffer, mb);
}

numSamplesDone += numSamplesThisTime;

mb.clear();
Expand Down Expand Up @@ -660,7 +677,12 @@ struct ParameterThreadSafetyTest : public PluginTest
param->setValue (r.nextFloat());

fillNoise (ab);
instance.processBlock (ab, mb);

{
RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel)
instance.processBlock (ab, mb);
}

mb.clear();
}

Expand Down

0 comments on commit a759fd6

Please sign in to comment.