Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Qt5.3.1 QAudioDeviceInfo::defaultOutputDevice() return empty List in Windows
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
10 Posts 2 Posters 4.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    gogasome
    wrote on last edited by
    #1

    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 https://bugreports.qt-project.org/browse/QTBUG-39157 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

    1 Reply Last reply
    2
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should also add which package/compiler you installed

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • G Offline
        G Offline
        gogasome
        wrote on last edited by
        #3

        I compile using mscv2012.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • G Offline
            G Offline
            gogasome
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Can you check what multimedia plugin you are getting ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • G Offline
                G Offline
                gogasome
                wrote on last edited by
                #7

                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.
                WMF:
                <appDir>\mediaservice\qtmedia_audioengine.dll
                <appDir>\mediaservice\wmfengine.dll
                DirectShow:
                <appDir>\mediaservice\dsengine.dll
                <appDir>\mediaservice\qtmedia_audioengine.dll

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

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  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

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    gogasome
                    wrote on last edited by
                    #9

                    Class
                    @QAudioDeviceInfo@

                    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.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      gogasome
                      wrote on last edited by
                      #10

                      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.

                      1 Reply Last reply
                      2

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved