I'm not sure I fully understand what you'd like to accomplish but using the 
command-line as listed below makes you access the ALSA device directly, 
completely by-passing PulseAudio. If you ever want to do some more advanced 
mixing/routing and even benefit from the Murphy audio policy capabilities, this 
does not look like a wise thing to do.

If you really want to specifically indicate the device that you want to use as 
a sink, then I'd suggest you use Gstreamer pulsesink plugin and specify the 
PulseAudio device that corresponds to the audio card you want to use. Jaska 
gave a good example in his response on a different thread: 
https://lists.tizen.org/pipermail/ivi/2014-December/003782.html

HTH,
Geoffroy

-----------------------------------------------
Intel Corporation NV/SA
Kings Square, Veldkant 31
2550 Kontich
RPM (Bruxelles) 0415.497.718. 
Citibank, Brussels, account 570/1031255/09


> -----Original Message-----
> From: IVI [mailto:ivi-boun...@lists.tizen.org] On Behalf Of Kaskinen, Tanu
> Sent: Sunday, December 21, 2014 4:22 PM
> To: 15045696...@163.com
> Cc: ivi@lists.tizen.org
> Subject: Re: [IVI] About playbin route setting
> 
> On Sun, 2014-12-21 at 21:30 +0800, Zoe James wrote:
> >
> >
> > With the following line command ,the mp3 output in QT media player.
> > gst-launch-1.0 playbin uri=file:///test.mp3 audio-sink="alsasink
> > device=hw:0,0"
> >
> >
> > Is there Gstreamer API can realise "alsasink device=hw:0,0"(route
> > settings).
> > I want set the route with code not command.
> >
> > Thanks advance!
> 
> Have you tried reading the GStreamer documentation? I'm not familiar
> with the GStreamer API, so I can't give exact instructions, but setting
> up a playback pipeline is very basic GStreamer functionality, so I'm
> sure there's documentation for that at
> http://gstreamer.freedesktop.org/documentation/
> 
> --
> Tanu
> 
> _______________________________________________
> IVI mailing list
> IVI@lists.tizen.org
> https://lists.tizen.org/listinfo/ivi
_______________________________________________
IVI mailing list
IVI@lists.tizen.org
https://lists.tizen.org/listinfo/ivi

Reply via email to