On Fri, 15 Apr 2011 05:39:11 pm ext Fredrik HENRICSSON wrote:
> Hi Alan,
> 
> To list the available audio devices you could use QAudioDeviceInfo 
> (http://doc.qt.nokia.com/qtmobility/qaudiodeviceinfo.html). 
> It also provides a function to fetch the default output device, so you could 
> check if it changes when you update the settings in KDE. 
> There is QAudioOutput (http://doc.qt.nokia.com/qtmobility/qaudiooutput.html) 
> where you can set which device to use, but I could not
> find anything similar for QMediaPlayer, so I suppose it relies on the default 
> output device.

QMediaPlayer does not currently support audio device selection,
there is a QAudioEndpointSelector control designed for this purpose 
but gstreamer backend doesn't implement it.

Regards
  Dmytro.

> 
> BR
> Fredrik
> 
> -----Original Message-----
> From: 
> qt-mobility-feedback-bounces+fredrik.henricsson=stericsson....@qt.nokia.com 
> [mailto:qt-mobility-feedback-bounces+fredrik.henricsson=stericsson....@qt.nokia.com]
>  On Behalf Of Alan Ezust
> Sent: den 14 april 2011 20:46
> To: Jason H
> Cc: [email protected]
> Subject: Re: [Qt-mobility-feedback] Multiple sound cards and multimediakit
> 
> I realize mobility knows nothing of KDE, but both KDE and MS-Windows
> have a way for users to specify
> preferred sound devices for certain roles, such as Music, Video,
> Communications, Alerts, etc.
> Kde users can choose between GStreamer or Xine as a back-end, and then
> I believe GStreamer is using ALSA
> behind the scenes. But if I tell KDE to use GStreamer back end and set
> the preferred devices,
> those preferences are still not respected by QtMultimedia (on linux).
> 
> Most computers have more than one sound device now.
> I imagine most back-ends such as GStreamer also have a concept of
> selecting devices from a list.
> 
> I was wondering if there is a mobility-way to see a list of devices,
> or perhaps select a sound card based on the preferred role.
> Something analogous to the QNetworkInterface for sound cards.
> 
> 
> On Thu, Apr 14, 2011 at 10:40 AM, Jason H <[email protected]> wrote:
> > Mobility knows nothing of KDE.
> > KDE should conceptually be using Mobility (not the other way around)
> > Mobility attempts to be as dependent on as little as possible, so it uses
> > gstreamer, so that's where your problem likely is.
> >
> >
> >
> >
> >
> > ----- Original Message ----
> > From: Alan Ezust <[email protected]>
> > To: [email protected]
> > Sent: Thu, April 14, 2011 1:24:07 PM
> > Subject: [Qt-mobility-feedback] Multiple sound cards and multimediakit
> >
> > If I have multiple sound cards on my system, how do I select which one
> > I want to use from Qt Mobility's Multimediakit?
> > My player example always uses my internal sound card, even if it is
> > not the preferred KDE device for "music".
> > Is mobility supposed to respect one's KDE preferences? Or is that
> > something that needs to be set at the gstreamer level?
> > _______________________________________________
> > Qt-mobility-feedback mailing list
> > [email protected]
> > http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback
> >
> >
> _______________________________________________
> Qt-mobility-feedback mailing list
> [email protected]
> http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback
> _______________________________________________
> Qt-mobility-feedback mailing list
> [email protected]
> http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback
> 
_______________________________________________
Qt-mobility-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-mobility-feedback

Reply via email to