Hi

is there a possibility to switch audio devices "on the fly". That is, while
the program that will use (but does not do this at the moment!) the device
is running?

To give an example:

Using twinkle (a VOIP program), I?d like to have it using the internal audio
device as long as there is no external one connected. But when I connect a
bluetooth headset, I would like to have it use the new audio device
instead.

I wrote an .asoundrc defining a new device TEST that symlinks to hw:0,0
(internal) or to hw:0,1 (external). Using aplay -d TEST works as expected.
That is: It uses the internal speaker when TEST links to hw:0,0 and the
external bluetooth device when linked to hw:0,1

However, when I start twinkle (and twinkle uses TEST as device) any changes
to .asoundrc (e.g. switching TEST to hw:0,1) are only recognized after a
restart of twinkle. :-(

I hope I could make my question clear and that there is a nice solution to
this problem.

Thanks,

Michael

BTW.: At the moment I am using a pretty silly workaround. I have twinkle
using OSS instead of alsa with a special device /dev/dsp3 which is a simple
file symlink to either /dev/dsp0 or /dev/dsp1. Starting twinkle then with
aoss makes it use alsa, but I am able to switch devices on the fly by
changing the symlink.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to