setDefaultMidiOutput calls audio callbacks?


#1

Hey Jules, I’ve been looking at the code for AudioDeviceManager::setDefaultMidiOutput and I’m wondering why it calls the audioDeviceStopped and audioDeviceAboutToStart callbacks. The midi output doesn’t seem to have any bearing on what the audio device code is doing. Am I missing something?


#2

That’s old code but I think it’s to stop the audio callbacks trying to send messages to the old/new midi devices while it’s being swapped over. TBH I’m not sure why I stopped the callbacks rather than just making the device pointer unavailable, but would be reluctant to change it in case there’s a subtle but important reason which I’ve forgotten!


#3

Ok thanks and yeah that’s understandable. I’ll patch my version and if anything comes up I’ll let you know!