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. unable to load audio/qtaudio_windows.dll
Forum Updated to NodeBB v4.3 + New Features

unable to load audio/qtaudio_windows.dll

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 1.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.
  • T Offline
    T Offline
    tlexy
    wrote on last edited by
    #1

    I have two program, A and B, program A has many functionity that use many other library, such as protobuf and fdkaac, program B is very simple, it just detect the audio input device and print the name of it. But when I launch program A, the statement QList<QAudioDeviceInfo> devices = QAudioDeviceInfo::availableDevices(QAudio::AudioInput); devices.size() return zero,it just couldn't detect the audio input device. In program B, the result is 2.
    when I run "Process Explorer" to find out what dll they had loaded, I found that the program A didn't load the qtaudio_wasapi.dll and qtaudio_windows.dll (the dll is under the folder "audio"), but the program B loaded the qtaudio_wasapi.dll and qtaudio_windows.dll, I think that's why the program A work incorrectly. but why the program A does't load the qtaudio_wasapi.dll and qtaudio_windows.dll? the program A need that dlls to work correctly.
    However, if I copy the two program to other pc to run, the two program both don't load the qtaudio_wasapi.dll and qtaudio_windows.dll, so in other pc, I don't get what I want. I just wander that the program load the Qt5core.dll, Qt5Gui.dll, Qt5Multimedia.dll and so on, but why they don't load the qtaudio_wasapi.dll and qtaudio_windows.dll?
    Here is some screenshot:
    QQ截图20200303123741.png
    QQ截图20200303123537.png QQ截图20200303122900.png

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tlexy
      wrote on last edited by
      #2

      now, my application work correctly, it just need add this in the begining of main():
      QCoreApplication::addLibraryPath("./");
      And then create directory "plugins" in application folder and copy the audio folder to it.

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

        Hi,

        Did you use windeployqt to prepare your application for deployment ?

        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

        • Login

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