Browse Source

AAX: Set nonrealtime state appropriately when rendering with AudioSuite

tags/2021-05-28
reuk 4 years ago
parent
commit
10c77ce296
No known key found for this signature in database GPG Key ID: 9ADCD339CFC98A11
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp

+ 14
- 0
modules/juce_audio_plugin_client/AAX/juce_AAX_Wrapper.cpp View File

@@ -1128,6 +1128,20 @@ namespace AAXClasses
case AAX_eNotificationEvent_EnteringOfflineMode: pluginInstance->setNonRealtime (true); break;
case AAX_eNotificationEvent_ExitingOfflineMode: pluginInstance->setNonRealtime (false); break;
case AAX_eNotificationEvent_ASProcessingState:
{
if (data != nullptr && size == sizeof (AAX_EProcessingState))
{
const auto state = *static_cast<const AAX_EProcessingState*> (data);
const auto nonRealtime = state == AAX_eProcessingState_Start
|| state == AAX_eProcessingState_StartPass
|| state == AAX_eProcessingState_BeginPassGroup;
pluginInstance->setNonRealtime (nonRealtime);
}
break;
}
case AAX_eNotificationEvent_TrackNameChanged:
if (data != nullptr)
{


Loading…
Cancel
Save