adstatus to select specific output device at boot

Robin Koek's icon

Hello dear community,

For an installation I'm working that has to run by itself on I would like to built-in the following functionality in my patch at boot, I would like to use the adstatus (or other recommended object?) to poll if the RME Digiface is listed as possible output device, if the equation is true this device should be forced to be selected as output and after this procedure turn on the DSP by itself.

I know Max will automatically initiate the last selected output device at boot which should already cover this, but I would just like to built-in this additional fail-safe system on top of that.

I think the solution lies somewhere in a good combination between the adstatus driver and adstatus option object but I can not completely work it out, any suggestions would be welcome!

Kind regards,
Robin

antialias's icon

Here's an example of an auto select setup-- this version is for an Audiofire 12--you can change the device name in the zl compare object.

auto select audiofire 180414 1.maxpat
Max Patch

antialias's icon

you may need to delay starting audio after boot to let the os find the audio device--attached patch goes in your start up items with file names for your installation patches.

open_me-160830-1.maxpat
Max Patch

Robin Koek's icon

Dear Antialias (clever alias!)

Thanks for sharing your example! really helpful, great solution and nifty work-around combining the zl sorting with a variable uzi based on list of devices.

Best,
Robin

antialias's icon

hey robin-- glad it helped. both patches were gleaned from this forum-- credits:

cheers ian

bennyG's icon

Just wanted to say thanks for sharing! V helpful.