juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.44k stars 1.71k forks source link

Add support for observing MIDI setup changes #1006

Open adamnemecek opened 2 years ago

adamnemecek commented 2 years ago

Right now, it's impossible to observe changes to midi setup changes

https://github.com/juce-framework/JUCE/blob/0bac0e78c815d9b6328e238fefc2bb151a5163ec/modules/juce_audio_devices/native/juce_mac_CoreMidi.mm#L587

E.g. this method should be implemented. I can try putting something together if there's interest.

adamnemecek commented 2 years ago

I mean I'm aware of how to subscribe to the notifications, what I was saying is that this should be a juce feature, I don't really want to maintain my fork. There's no need to use the CFNotificationCenter, you can just use NSNotificationCenter.