Re: Sound Card Configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If you set an environment variable ALSA_DEVICE to 0 or 1 for each session,
the following definition in /etc/asound.conf should do what you want:

pcm.!default {
    type plug
    slave.pcm {
        @func concat
        strings [
            "dmix:CARD=Live,DEV="
            {
                @func getenv
                vars [ ALSA_DEVICE ]
                default 0
            }
        ]
    }
}


HTH
Clemens

==================================================

That helped, thanks.  I ended up putting your code in .asoundrc for each
user.  It didn't seem to work in /etc/asound.conf (I wonder if it has to do
with order of setting variables and reading /etc/asound.conf).  Now, the
sound from vlc plays independantly for the different users, but firefox and
games (like robots) still send sounds to device 0, which seat0 is listening
on.  I still have /etc/asound.conf in place.  I don't think it makes a
difference, but I'll delete it and try again in the morning.  Any other
thoughts would be appreciated.

John


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux