From b2a4aaa33881bcce0e10117199850d2e2df75ba0 Mon Sep 17 00:00:00 2001 From: ed Date: Fri, 7 Jun 2019 18:06:32 +0100 Subject: [PATCH] Updated some deprecated AudioDeviceManager methods in the AudioPluginHost --- extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp b/extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp index 418582c4a3..737acd18f8 100644 --- a/extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp +++ b/extras/AudioPluginHost/Source/UI/GraphEditorPanel.cpp @@ -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) {