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. QAudioProbe doesn't work in Windows
Forum Updated to NodeBB v4.3 + New Features

QAudioProbe doesn't work in Windows

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

    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?

    Stanislav SilnickiS 1 Reply Last reply
    0
    • V vlada

      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?

      Stanislav SilnickiS Offline
      Stanislav SilnickiS Offline
      Stanislav Silnicki
      wrote on last edited by Stanislav Silnicki
      #2

      @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...

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vlada
        wrote on last edited by
        #3

        @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.

        1 Reply Last reply
        1

        • Login

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