Forum: GNU Radio How to Kill a previous Audio process

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
36d6b4ceb15343f9e412cc17be319902?d=identicon&s=25 Santi Ortega (Guest)
on 2008-10-07 19:45
(Received via mailing list)
How to Kill a previous Audio process?
I obtain this error: audio_alsa_sink[hw:0,0]: Device or resource busy
And I remember there is a command to do it... but I don't know which!
A725014f091bcd9e8ff16e9f2a0d7e20?d=identicon&s=25 Stefan Brüns (Guest)
on 2008-10-07 19:45
(Received via mailing list)
On Tuesday 07 October 2008 19:30:58 Santi Ortega wrote:
> How to Kill a previous Audio process?
> I obtain this error: audio_alsa_sink[hw:0,0]: Device or resource busy
> And I remember there is a command to do it... but I don't know which!

There are to possibilities in this case:
Either, you can live with a small added latency due to software mixing,
then
you should use "default:0" instead of "hw:0" (given that your
distribution
configures ALSA to use software mixing, which is the case for all major
distributions), or you _really_ want to access the device exclusively.
In
this case, use fuser:

list programms accessing any pcm device:
  fuser -v /dev/snd/pcmC?D?
kill any programm accessing any pcm device:
  fuser -k /dev/snd/pcmC?D?

Stefan

--
Stefan Brüns  /  Bergstraße 21  /  52062 Aachen
mailto:lurch at gmx.li  http://www.kawo1.rwth-aachen.de/~lurchi/
   phone: +49 241 53809034     mobile: +49 151 50412019
This topic is locked and can not be replied to.