mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
VS2022: Work around a compiler bug
This commit is contained in:
parent
8c48956681
commit
c7cabbbaba
4 changed files with 2 additions and 9 deletions
|
|
@ -1299,11 +1299,6 @@ void GraphDocumentComponent::createNewPlugin (const PluginDescriptionAndPreferen
|
||||||
graphPanel->createNewPlugin (desc, pos);
|
graphPanel->createNewPlugin (desc, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphDocumentComponent::unfocusKeyboardComponent()
|
|
||||||
{
|
|
||||||
keyboardComp->unfocusAllComponents();
|
|
||||||
}
|
|
||||||
|
|
||||||
void GraphDocumentComponent::releaseGraph()
|
void GraphDocumentComponent::releaseGraph()
|
||||||
{
|
{
|
||||||
deviceManager.removeAudioCallback (&graphPlayer);
|
deviceManager.removeAudioCallback (&graphPlayer);
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,6 @@ public:
|
||||||
std::unique_ptr<PluginGraph> graph;
|
std::unique_ptr<PluginGraph> graph;
|
||||||
|
|
||||||
void resized() override;
|
void resized() override;
|
||||||
void unfocusKeyboardComponent();
|
|
||||||
void releaseGraph();
|
void releaseGraph();
|
||||||
|
|
||||||
//==============================================================================
|
//==============================================================================
|
||||||
|
|
|
||||||
|
|
@ -592,7 +592,7 @@ void MainHostWindow::menuItemSelected (int menuItemID, int /*topLevelMenuIndex*/
|
||||||
void MainHostWindow::menuBarActivated (bool isActivated)
|
void MainHostWindow::menuBarActivated (bool isActivated)
|
||||||
{
|
{
|
||||||
if (isActivated && graphHolder != nullptr)
|
if (isActivated && graphHolder != nullptr)
|
||||||
graphHolder->unfocusKeyboardComponent();
|
Component::unfocusAllComponents();
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainHostWindow::createPlugin (const PluginDescriptionAndPreference& desc, Point<int> pos)
|
void MainHostWindow::createPlugin (const PluginDescriptionAndPreference& desc, Point<int> pos)
|
||||||
|
|
|
||||||
|
|
@ -1191,8 +1191,7 @@ namespace AAXClasses
|
||||||
if (data != nullptr && size == sizeof (AAX_EProcessingState))
|
if (data != nullptr && size == sizeof (AAX_EProcessingState))
|
||||||
{
|
{
|
||||||
const auto state = *static_cast<const AAX_EProcessingState*> (data);
|
const auto state = *static_cast<const AAX_EProcessingState*> (data);
|
||||||
const auto nonRealtime = state == AAX_eProcessingState_Start
|
const auto nonRealtime = state == AAX_eProcessingState_StartPass
|
||||||
|| state == AAX_eProcessingState_StartPass
|
|
||||||
|| state == AAX_eProcessingState_BeginPassGroup;
|
|| state == AAX_eProcessingState_BeginPassGroup;
|
||||||
pluginInstance->setNonRealtime (nonRealtime);
|
pluginInstance->setNonRealtime (nonRealtime);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue