[pulseaudio-tickets] [PulseAudio] #706: [PATCH] Automatically switch to new devices

PulseAudio trac-noreply at tango.0pointer.de
Tue Nov 3 05:34:36 PST 2009


#706: [PATCH] Automatically switch to new devices
-------------------------+--------------------------------------------------
 Reporter:  mterry       |       Owner:  lennart
     Type:  enhancement  |      Status:  new    
Milestone:               |   Component:  daemon 
 Keywords:               |  
-------------------------+--------------------------------------------------
 I was thinking it would be nice to automatically switch to a new device if
 the user connected one.  My primary use case was connecting new Bluetooth
 devices.

 When you plug in new (jack) headphones, those automatically switch.  So
 Bluetooth seemed like it should work the same way.  I suppose the same
 holds true for HDMI (or whatever devices provide sinks/sources).

 Attached is my naive attempt at doing so.  It provides a new module
 switch-on-connect.  When a new source or sink is made available (during
 the session, not during startup), it makes it the new default and switches
 outputs/inputs from the previous default to the new one.  I'd welcome
 feedback on the approach or implementation.

-- 
Ticket URL: <http://pulseaudio.org/ticket/706>
PulseAudio <http://pulseaudio.org/>
The PulseAudio Sound Server


More information about the pulseaudio-bugs mailing list