Browse Source

Fixed an issue where the bus enabled radio button in the audio demo host would not update properly

tags/2021-05-28
hogliux 9 years ago
parent
commit
de723216b5
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      examples/audio plugin host/Source/FilterIOConfiguration.cpp

+ 4
- 3
examples/audio plugin host/Source/FilterIOConfiguration.cpp View File

@@ -258,6 +258,8 @@ private:
{
if (AudioProcessor::Bus* bus = filter->getBus (isInput, currentBus))
{
name.setText (bus->getName(), NotificationType::dontSendNotification);
int i;
for (i = 1; i < AudioChannelSet::maxChannelsOfNamedLayout; ++i)
@@ -282,10 +284,9 @@ private:
const bool canBeDisabled = bus->isNumberOfChannelsSupported (0);
if (canBeDisabled != enabledToggle.isEnabled())
{
enabledToggle.setEnabled (canBeDisabled);
enabledToggle.setToggleState (bus->isEnabled(), NotificationType::dontSendNotification);
}
enabledToggle.setToggleState (bus->isEnabled(), NotificationType::dontSendNotification);
}
}
}


Loading…
Cancel
Save