I’d like to be notified in my app when an audio device appears or disappears from the computer’s network.
I can create a new AudioIODevice to get access to a particular device,
and this class creates a CoreAudioInternal that registers for AudioDevice
changes, but I don’t see how to access the function called by the callback (DeviceDetailsChanged) from my AudioIODevice pointer.
To do this without altering juce code, it looks as if I need to create two new classes, a new version of AudioIODevice that will use a new version of CoreAudioInternal. This CoreAudioInternal class can then override DeviceDetaisChanged to keep track of device comings and goings.
Is there a simpler way?