Qt can't find Windows Media Foundation classes

  • I want to use QAudioDecoder to decode audio into a buffer. However, I'm getting this error:

    defaultServiceProvider::requestService(): no service found for - "org.qt-project.qt.audiodecode"

    I looked it up and found that this error occurs because the Windows Media Foundation classes can't be found. But I have MSVC 2015 installed with the Windows 10 SDK that includes the media foundation classes (I think). I have the kit set to "Desktop Qt 5.7.0 MSVC2015_64bit". I have also added "QT += multimedia" to my project file. What am I doing wrong here?

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.