Re: [Jack-Devel] Removable Devices / Soundcards
On 03/10/2012 03:15 PM, Ede Wolf wrote:
> Hello,
>
> upon connection of my USB microphone udev runs a script that creates the
> nessecary alsa_in devices. Works fine so far and astonishing stable.
> Haven't tried with high load, though.
>
> However, when I unplug the microphone in cold blood, alsa_in kinda
> zombiefies and cpu usage goes up to 100% - somethig that is somehow
> comprehendable.
>
> So again udev runs a script upon removal to plain killall -9 alsa_in.
>
> Now I wonder, is there a graceful way to close alsa_in manually before
> disconnecting? Not sure, wether all application will be happy when
> simply killing an input port.
>
> Even more, when using another soundcard with alsa_in, that would be
> killed to, what may not be desired. So being able to selectively shut
> down ports could be useful here, too.
>
> Is that currently possible?
AFAIK not OOTB the way you describe it.
Instead of alsa_in/out (which always does resampling) - switch jackd
backends on the fly. Currently that only works with jack2+dbus:
http://gareus.org/blog/jack2dbus
best,
robin
1331494147.30560_0.ltw:2,a <4F5CFCEE.4060004 at gareus dot org>