[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-multimedia
Subject:    Phonon BackendCapabilities::availableAudioOutputDevices() returns empty list
From:       Christian Esken <esken () kde ! org>
Date:       2013-12-18 16:56:57
Message-ID: 52B1D3D9.2050100 () kde ! org
[Download RAW message or body]

Hello,

I am trying to find the existing audio devices known to Phonon. I am 
trying to use BackendCapabilities::availableAudioOutputDevices() in 
KDE4.11.3, but this simply returns an empty list. "kcmshell4 kcm_phonon" 
shows all devices, so its not a generic issue. As background 
information, I want to get the actual device name from Phonon, and then 
match it to the Mixer devices in KMix (e.g. "hw:0 => hw:0" in ALSA or 
"/dev/dsp1 => /dev/mixer1"  in OSS).
Do I need initialization code (the tutorials made me think that I do not 
need it)? Does anybody has advice?

   Christian


// This is the first Phonon call in my code:
         QList<Phonon::AudioOutputDevice> devs = 
Phonon::BackendCapabilities::availableAudioOutputDevices();
         if (devs.isEmpty())
             return;   // Always returns!!!

         Phonon::AudioOutputDevice& dev = devs[0];
// ...
_______________________________________________
kde-multimedia mailing list
kde-multimedia@kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic