Browse Source

Updated some deprecated AudioDeviceManager methods in the AudioPluginHost

tags/2021-05-28
ed 6 years ago
parent
commit
b2a4aaa338
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp

+ 2
- 2
extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp View File

@@ -1164,7 +1164,7 @@ GraphDocumentComponent::GraphDocumentComponent (AudioPluginFormatManager& fm,
deviceManager.addChangeListener (graphPanel.get());
deviceManager.addAudioCallback (&graphPlayer);
deviceManager.addMidiInputCallback (String(), &graphPlayer.getMidiMessageCollector());
deviceManager.addMidiInputDeviceCallback ({}, &graphPlayer.getMidiMessageCollector());
}
void GraphDocumentComponent::init()
@@ -1246,7 +1246,7 @@ void GraphDocumentComponent::unfocusKeyboardComponent()
void GraphDocumentComponent::releaseGraph()
{
deviceManager.removeAudioCallback (&graphPlayer);
deviceManager.removeMidiInputCallback (String(), &graphPlayer.getMidiMessageCollector());
deviceManager.removeMidiInputDeviceCallback ({}, &graphPlayer.getMidiMessageCollector());
if (graphPanel != nullptr)
{


Loading…
Cancel
Save