[PD] selecting the correct alsa soundcard via commandline ...

Frank Barknecht fbar at footils.org
Fri Jun 12 08:43:04 CEST 2009


Hallo,
danomatika hat gesagt: // danomatika wrote:

> As far as I know, an asoundrc dosen't help in this case.  Ubuntu already
> has a default asoundrc which automatically creates an alias named after
> the device.  I can't use this with pd since pd only takes the alsa hw or
> plug indexes which can change depending on what gear I'm using.
> 
> I've also read on the list that you can use -alsaadd to add a device to
> the list from a custom asoundrc, but this only adds the device to the
> gui menu which I would need to access via a fudi startup message ala
> "audio-dialog 0 0 0 0 2 ...".  Even in this case, I still have to have a
> damned index to the menu item!

If you use -alsaadd, you can also use the -audiodev flag to select the card
added, no need to use the FUDI message. The added device appears after the
predefined devices, one hw, one plughw for each card. So with two cards in the
system, the first -alsaadded card will be at index 5.

Anyway, I think, even then you still need a damned index.

But cards don't magically enter or leave your computer: Why don't you prepare
some startup scripts depending on how many cards are in the box?

Ciao
-- 
Frank




More information about the Pd-list mailing list