how to set sound output to specific sound card

jsr_'s icon

hey forum,

i am making a simple 4 channel sound player for an installation. since the installation is running for some time, it has to power on and off automatically. everything works fine, except once in a while max chooses the wrong soundcard for the patch, and my sound is channeled to the internal speakers, and not my soundcard!

i figured out that with 'adstatus option 1', i can populate a list with available soundcards, but the list is populated in a different order sometimes, making me choose the wrong soundcard.

is it possible to choose the soundcard from the name it has, ie. something like 'adstatus option "M-Audio FireWire 410"'?

alternatively compare the created list with the name of the soundcard somehow, and then choose the right number on the list?

thank you,

Max Patch
Copy patch and select New From Clipboard in Max.

jacob

jsr_'s icon

ok, i ended up figuring this out myself:

Max Patch
Copy patch and select New From Clipboard in Max.

with some zl compare, zl delace and uzi tricks i managed to iterate through the list, and select the wanted option, if there was a match by name with the soundcard i was interested in.

having a way to specify soundcard by name directly through adstatus would be nice though, to keep things simple.

MMa's icon

great job!

mizu's icon

nice ! maybe i should replace "zl delace" with "route count". Umenu reacts here to the dump message too. In this isolated situation, it's not so problematic
bzzz

MMa's icon

does anyone know how it is possible to do this in windows?