PDA

View Full Version : Phonon: set audio output device



Green360
15th November 2014, 15:53
My app should enumerate all available audio ouput devices (like skype, see: http://i.imgur.com/BlmgKnx.png)
and allow user to select any device he wants to play sound in.

I use the following code


QList<Phonon::AudioOutputDevice> devices = Phonon::BackendCapabilities::availableAudioOutputD evices();

but when I call name() method of AudioOutputDevice instance, it returns unreadable name like
"DirectSound:{BD7A5B5F-B154-498F-9E6B-BAA84ECBA756}"
or
"wave:{1BD5EB1E-72A7-4725-94B2-BBD6A7548F46}"

What is the right way to get a list of all available audio output devices in phonon?