Phonon: only one output device
-
IIRC, using phonon, you'll use what the backend is setup to use e.g. pulseaudio.
If you want to play with several outputs at the same time, you should rather look at QtMultimedia
-
Do you have some examples how to do that? I know how to play (raw formats)wave but how to play mp3 or internet radio using QtMultimedia?
-
QMediaPlayer comes to mind
-
In QMediaPlayer i can't found way to set output device.
Do you know how to set it? I even looked at the code but i don't know how it works :/ -
AFAIK, you can't just simply set it. You have to get a QAudioEndpointSelector from QMediaPlayer. However it might not be implement in all backends
-
I have Qt 5.3.1 and can't find QAudioEndpointSelector class.
About what version Qt you are talking about? Do you have an example? -
Sorry, my bad it's a class from QtMobility, it's QAudioOutputSelectorControl that I was thinking about
-
What the qt-mobility is? It sounds like lib for mobile devices. Can i use it in desktop app?
-
It was for the Qt 4 series, some of the classes have been integrated in Qt 5 others might need porting.
Yes you can,
-
I don't know how to do that.
Maybe you know some other C++ library than qt where can i play music on multiple sound cards? I use it on linux and want play music from internet radio. -
You can have a look at GStreamer and QGStreamer