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 not working anymore
Forum Updated to NodeBB v4.3 + New Features

QAudioProbe not working anymore

Scheduled Pinned Locked Moved Unsolved General and Desktop
qaudioprobedirectshow
2 Posts 2 Posters 684 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
    tintin.milou
    wrote on last edited by
    #1

    Hi

    I have a problem with QAudioProbe. It doesn't work under Windows 10. I have 4 kits:

    • Desktop Qt 5.11.1 MinGW 32bit
    • Desktop Qt 5.11.1 MSVC2015 32bit
    • Desktop Qt 5.11.1 MSVC2015 64bit
    • Desktop Qt 5.11.1 MSVC2017 64bit
        m_mediaPlayer = new QMediaPlayer(this);
        m_audioProbe = new QAudioProbe(this);
        connect(m_audioProbe, SIGNAL(audioBufferProbed(QAudioBuffer)), this, SLOT(audioSlot(QAudioBuffer)));
        m_audioProbe->setSource(m_mediaPlayer);
        m_videoWidget = new QVideoWidget;
        m_mediaPlayer->setVideoOutput(m_videoWidget);
        m_videoWidget->show();
    
        setCentralWidget(m_videoWidget);
    
        m_mediaPlayer->setMedia(QMediaContent(QUrl::fromLocalFile("C:/blabla/video.avi")));
        m_mediaPlayer->play();
    

    This code gives me this error : "qt.multimedia.plugins.directshow: Failed to connect the audio sample grabber", and the signal is never sent.

    QAudioProbe used to work in previous versions of Qt. Is it a bug? How can I fix this problem?

    I apologize for my bad English. It is not my mother tongue.

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

      Hi and welcome to devnet,

      You should start both version of your application with the QT_DEBUG_PLUGINS environment variable set to one to see which plugin is used in both. If it's the same then you may have found a regression.

      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