|
14 | 14 |
|
15 | 15 | #include "../PluginTests.h" |
16 | 16 | #include "../TestUtilities.h" |
| 17 | +#include "../RTCheck.h" |
| 18 | + |
17 | 19 | #include <future> |
18 | 20 | #include <thread> |
19 | 21 |
|
@@ -156,7 +158,12 @@ struct EditorWhilstProcessingTest : public PluginTest |
156 | 158 | while (shouldProcess) |
157 | 159 | { |
158 | 160 | fillNoise (ab); |
159 | | - instance.processBlock (ab, mb); |
| 161 | + |
| 162 | + { |
| 163 | + RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel) |
| 164 | + instance.processBlock (ab, mb); |
| 165 | + } |
| 166 | + |
160 | 167 | mb.clear(); |
161 | 168 |
|
162 | 169 | threadStartedEvent.signal(); |
@@ -230,7 +237,12 @@ struct AudioProcessingTest : public PluginTest |
230 | 237 | addNoteOff (mb, noteChannel, noteNumber, 0); |
231 | 238 |
|
232 | 239 | fillNoise (ab); |
233 | | - instance.processBlock (ab, mb); |
| 240 | + |
| 241 | + { |
| 242 | + RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel) |
| 243 | + instance.processBlock (ab, mb); |
| 244 | + } |
| 245 | + |
234 | 246 | mb.clear(); |
235 | 247 |
|
236 | 248 | ut.expectEquals (countNaNs (ab), 0, "NaNs found in buffer"); |
@@ -414,7 +426,12 @@ struct AutomationTest : public PluginTest |
414 | 426 | numSamplesDone, |
415 | 427 | numSamplesThisTime); |
416 | 428 | fillNoise (subBuffer); |
417 | | - instance.processBlock (subBuffer, mb); |
| 429 | + |
| 430 | + { |
| 431 | + RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel) |
| 432 | + instance.processBlock (subBuffer, mb); |
| 433 | + } |
| 434 | + |
418 | 435 | numSamplesDone += numSamplesThisTime; |
419 | 436 |
|
420 | 437 | mb.clear(); |
@@ -660,7 +677,12 @@ struct ParameterThreadSafetyTest : public PluginTest |
660 | 677 | param->setValue (r.nextFloat()); |
661 | 678 |
|
662 | 679 | fillNoise (ab); |
663 | | - instance.processBlock (ab, mb); |
| 680 | + |
| 681 | + { |
| 682 | + RTC_REALTIME_CONTEXT_IF_LEVEL_10(ut.getOptions().strictnessLevel) |
| 683 | + instance.processBlock (ab, mb); |
| 684 | + } |
| 685 | + |
664 | 686 | mb.clear(); |
665 | 687 | } |
666 | 688 |
|
|
0 commit comments