I’m currently trying to build a patch that switches from a manually pre-selected real time driver (Built-in CoreAudio for instance) into the NRT driver when a certain condition is met. Then, when that condition is no longer true, it switches back again. I can’t however work out a straightforward way of doing this.
This is mainly due to the fact that adstatus uses a numeric index to select drivers, and this changes depending on the audio hardware Max detects. One idea I had was to let adstatus populate a menu/ubumenu with all available drivers, then query the menu in order to extract the number of items it contains. Is this possible?
It seems as though there should be an easy solution but I’m at my wits end with this one. Any suggestions would be fantastic.