Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QAudioProbe doesn't work in Windows



  • Hi,

    I have a problem with QAudioProbe in Windows. I install it like this:

        qt_player = new QMediaPlayer(this);
        audioProbe = new QAudioProbe(this);
        audioProbe->setSource(qt_player);
        if (audioProbe->setSource(qt_player)) {
            connect(audioProbe, &QAudioProbe::audioBufferProbed,
                    this, &MediaPlayer::calculateLevel);
        }
    

    This works without any problems. But as soon as I start the music playback, I get this error:

    qt.multimedia.plugins.directshow: Failed to connect the audio sample grabber
    

    The audioBufferProbed signal is never emitted. I tried it on Windows 10 and Windows 7 with the same result. On Linux it works as expected.

    Do you have any idea what might be wrong and how to fix it?



  • @vlada windows is asspain in repect to portable audio/video in my op. I'm fighting it to have videoprobe stuff work and the only feasible way to go seems to be plugging in some third party libs, demuxers, decoders... Just like you're developing player for OS with 10+ installs worldwide...



  • @Stanislav-Silnicki I managed to do an implementation using QtAV library. It uses ffmpeg libraries for audio/video playback and allows the same behavior on all systems (Windows/Linux/Android) I tried.


Log in to reply