1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Updated some deprecated AudioDeviceManager methods in the AudioPluginHost

This commit is contained in:
ed 2019-06-07 18:06:32 +01:00
parent 1ea463f989
commit b2a4aaa338

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)
{