| Although I cannot readily think of a way to do this with only a
.csoundrc, .asoundrc, et al I can imagine that an elegant solution
could be to create a shell script that has a conditional statement that
looks at which card is currently active or preferred in a user-defined
settings file.
Could it be possible to have a shell script look at the sound card
preference (possibly within $HOME) on startup and then call Csound with
the correct commandline options ?
Just a thought ... I'd be most definitely interested to hear other's
preponderance to this solution as well !!
-David
On Jan 4, 2006, at 5:26 PM, Steven Yi wrote:
> I've actually just run into this too after purchasing a USB soundcard
> a couple weeks ago; would love to find out a good way to do this too,
> either with .csoundrc or .asoundrc.
>
> On 1/4/06, Atte André Jensen wrote:
>> Hi
>>
>> Istvan pointed out in a thread a week ago that I can access the second
>> sound card under alsa by using -o dac:hw:1, which works well.
>>
>> Now the problem is that I have an onboard sound card and a usb sound
>> card. Is it possible to specify (in .csoundrc) that csound should use
>> the usb card if available and fall back to the onboard otherwise? |