LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Set default ALSA device (https://www.linuxquestions.org/questions/linux-software-2/set-default-alsa-device-186987/)

redneon 05-28-2004 12:06 PM

Set default ALSA device
 
Is it possible to set the default ALSA device? I have an Audigy2 NX card and have to create a device (called 48000) to upmix 44000hz sample rates to 48000hz so they sound right. My ~/.asoundrc file looks like this at the moment...

pcm.48000Hz {
type plug
slave {
pcm "hw:0,0"
rate 48000
}
route_policy default
}

Is there any way to get ALSA to automatically use this device so the sound always sounds right?

Darrell

proudclod 05-28-2004 01:44 PM

Ditto, this would be very useful.

redneon 06-01-2004 09:02 AM

I've figured out how to do it thanks so someone on the ALSA mailing list. This is my ~/.asoundrc file...

Code:

pcm.NX48000Hz
{
        type plug
        slave
        {
                pcm "hw:0,0"
                rate 48000
        }
        route_policy default
}

pcm.!default = NX48000Hz

That should work a treat. Is does for me anyways.

Darrell


All times are GMT -5. The time now is 09:30 AM.