Important: Please read the Qt Code of Conduct -

[Solved] Qt5.3.1 QAudioDeviceInfo::defaultOutputDevice() return empty List in Windows

  • I made a migration from Qt 5.2 to Qt 5.3. and a new migration to Qt 5.3.1 I see that @QAudioDeviceInfo::defaultOutputDevice()@

    return any data after migration. @QAudioDeviceInfo::availableDevices(QAudio::AudioOutput)@

    list is empty as well. I try to use the old Qt5Multimedia.dll from 5.2 build and everything became work. I use very simple configure options to compile Qt "configure -prefix ../qt-5.3 -opensource -nomake tests -nomake examples".

    I found a bug report but not sure that is related to my problem.
    Any suggestions?
    Qt: 5.3.0; Qt 5.3.1
    QCreator 3.0.1; Qt Creator 3.1.2 (opensource)
    Os: Windows 8.1 x64

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    You should also add which package/compiler you installed

  • I compile using mscv2012.

  • Lifetime Qt Champion

    Did you compile Qt yourself or are you using an official package ?

  • I compiled for myself on several PCs and checked the binaries from qt-opensource-windows-x86-msvc2012_opengl-5.3.0.exe. I didn't get any success.
    The problem definitely located in Qt5Multimedia.dll. I try binaries from 5.3 and Qt5Multimedia.dll from 5.2 work correct.

  • Lifetime Qt Champion

    Can you check what multimedia plugin you are getting ?

  • I'm not C++ developer. Can you ask you questions more detailed? I'm afraid i can miss the goal of your questions. I compiled the multimedia library to have direct show support and try default wmf as well.

    I don't use playlists, I have a playback by url only.

  • Lifetime Qt Champion

    The answer is correct, however since you have both plugins in the same folder I don't know which one is going to be used.

    You should not have them all in the same place, try with one and then the other

  • Class

    worked perfect even without any plugins. I try to find a problem and include plugins into project. I don't use the both at the same time )). I tryed one by one. I provided information what combination of plugins i used.
    I updated the Qt*.dll and class stop return any value. I still have an issue to detect sound cards.

  • Qt since 5.3 have additional plugin qt-5.3\qtmultimedia\plugins\audio\qtaudio_windows.dll
    It should be copied to project as well like <Project .exe>/audio/qtaudio_windows.dll
    Please notify if my post help somebody.

Log in to reply