ALSA locking up

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

ALSA locking up

Rob Gil

Hi,

I have an annoying problem with running some audio pipelines. ALSA driver seems to lock up and after that my alsasink element always bails out with "Could no open audio device for playback. Device is being used by another application." Usually I can run my application once with working audio output but after that ALSA seems to still think someone is using the device while the pipeline has already been killed. I'm using Ubuntu linux as my dev platform and so far I haven't been able to find a way to make alsasink work again - other than rebooting the whole computer.

Playbin elements still work, but I don't think I can use them as I want to play audio stream produced by my own custom element (outputting PCM) and not just from URI. Any ideas how I could prevent ALSA locking up or how to use playbin in a way it would get buffers in like normal sink element?

Cheers,

Rob





You live life online. So we put Windows on the web. Learn more about Windows Live
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ALSA locking up

Florent THIERY-2
Hi

> I have an annoying problem with running some audio pipelines. ALSA driver
> seems to lock up and after that my alsasink element always bails out with
> "Could no open audio device for playback. Device is being used by another
> application." Usually I can run my application once with working audio
> output but after that ALSA seems to still think someone is using the device
> while the pipeline has already been killed. I'm using Ubuntu linux as my dev
> platform and so far I haven't been able to find a way to make alsasink work
> again - other than rebooting the whole computer.

I have similar issues as well, for me relaunching the X server is enough.

I think this has something to do with pulse, parallel access from e.g.
flash in firefox and other apps.

FLo

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: ALSA locking up

Christopher Halse Rogers
On Thu, Dec 4, 2008 at 5:58 AM, Florent <[hidden email]> wrote:

> Hi
>
>> I have an annoying problem with running some audio pipelines. ALSA driver
>> seems to lock up and after that my alsasink element always bails out with
>> "Could no open audio device for playback. Device is being used by another
>> application." Usually I can run my application once with working audio
>> output but after that ALSA seems to still think someone is using the device
>> while the pipeline has already been killed. I'm using Ubuntu linux as my dev
>> platform and so far I haven't been able to find a way to make alsasink work
>> again - other than rebooting the whole computer.
>
> I have similar issues as well, for me relaunching the X server is enough.

Could you perhaps use autoaudiosink rather than hardcoding alsasink?
If I understand it correctly, that should use the actual pulseaudio
sink plugin when possible, which might work more reliably in a pulse
environment?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel