scramble for sound card

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

scramble for sound card

christie
hi all,
   I make my own application with gstreamer,but i can not use another player such as vlc or totem, to play a music file when i use it.If I have already played a music with totem or vlc, I can not use my application to play sound. It says that the sound card is used by other application. However, vlc and totem can play music at the same time.It looks like that gstreamer scrambles for sound card agaist other players. The same thing happens when i use gst-launch lines.
  How can I solve this problem? Is there any element that can be used here?
  I want to use my application and other soundplayers at the same time.

thanks & regards!

                                                                                                           christie
Reply | Threaded
Open this post in threaded view
|

Re: scramble for sound card

Philip Jägenstedt
In all likelihood this isn't a GStreamer issue. If you use ALSA, make
sure you use dmix. Otherwise, recent Ubuntu-releases use pulseaudio by
default which handles this and other things (and breaks S/PDIF
output).

Philip

On Mon, Jul 13, 2009 at 03:59, christie<[hidden email]> wrote:

>
> hi all,
>   I make my own application with gstreamer,but i can not use another player
> such as vlc or totem, to play a music file when i use it.If I have already
> played a music with totem or vlc, I can not use my application to play
> sound. It says that the sound card is used by other application. However,
> vlc and totem can play music at the same time.It looks like that gstreamer
> scrambles for sound card agaist other players. The same thing happens when i
> use gst-launch lines.
>  How can I solve this problem? Is there any element that can be used here?
>  I want to use my application and other soundplayers at the same time.
>
> thanks & regards!
>
>
> christie
> --
> View this message in context: http://www.nabble.com/scramble-for-sound-card-tp24423139p24423139.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



--
Philip Jägenstedt

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: scramble for sound card

Tim-Philipp Müller-2
In reply to this post by christie
On Fri, 2009-07-10 at 00:48 -0700, christie wrote:

>    I make my own application with gstreamer,but i can not use another player
> such as vlc or totem, to play a music file when i use it.If I have already
> played a music with totem or vlc, I can not use my application to play
> sound. It says that the sound card is used by other application. However,
> vlc and totem can play music at the same time.It looks like that gstreamer
> scrambles for sound card against other players. The same thing happens when i
> use gst-launch lines.
>   How can I solve this problem? Is there any element that can be used here?
>   I want to use my application and other soundplayers at the same time.

Check what the other applications use for sound output, and then use the
same sound output in GStreamer (e.g. pulsesink for PulseAudio, or
alsasink device=dmix:0 or whatever alsa device these apps use).

Cheers
 -Tim



------------------------------------------------------------------------------
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel