mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added identifier-based MIDI input/output methods to AudioDeviceManager and deprecated the old name-based methods
This commit is contained in:
parent
f0ea1c00a6
commit
e26529d5e9
7 changed files with 250 additions and 113 deletions
|
|
@ -270,7 +270,7 @@ public:
|
|||
#endif
|
||||
|
||||
audioDeviceManager.addAudioCallback (&audioSourcePlayer);
|
||||
audioDeviceManager.addMidiInputCallback ({}, &(synthAudioSource.midiCollector));
|
||||
audioDeviceManager.addMidiInputDeviceCallback ({}, &(synthAudioSource.midiCollector));
|
||||
|
||||
setOpaque (true);
|
||||
setSize (640, 480);
|
||||
|
|
@ -279,7 +279,7 @@ public:
|
|||
~AudioSynthesiserDemo()
|
||||
{
|
||||
audioSourcePlayer.setSource (nullptr);
|
||||
audioDeviceManager.removeMidiInputCallback ({}, &(synthAudioSource.midiCollector));
|
||||
audioDeviceManager.removeMidiInputDeviceCallback ({}, &(synthAudioSource.midiCollector));
|
||||
audioDeviceManager.removeAudioCallback (&audioSourcePlayer);
|
||||
audioDeviceManager.removeAudioCallback (&liveAudioDisplayComp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue