Changeset 25ff000


Ignore:
Timestamp:
03/05/14 09:33:19 (7 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
2761d27, 4f9718b
Parents:
73f107f
Message:

After devd notifies us of a new audio device and we switch to it, also switch
pulseaudio to using it by default

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-qt4/xtrafiles/local/share/pcbsd/scripts/sound-dev-changed.sh

    r1620346 r25ff000  
    8282   sysctl hw.snd.default_unit=$mixerNum 
    8383 
     84   # Look for pulseaudio daemons to change audio sinks on 
     85   for user in `ps -auwwx | grep 'pulseaudio --start' | grep -v 'grep' | awk '{print $1}'` 
     86   do 
     87      su $user -c "pactl set-default-sink $mixerNum" 
     88   done 
     89 
    8490} 
    8591 
Note: See TracChangeset for help on using the changeset viewer.