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. Can't set QAudioProbe source with QMediaPlayer.
QtWS25 Last Chance

Can't set QAudioProbe source with QMediaPlayer.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.4k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    It always is false. I honestly have no clue why it isn't working. Tried casting the player to QMediaObject, but that didn't work. Tried setting the sound file before setSource, that didn't work either. Any ideas?

    header:
    @ QPointer<QMediaPlayer> sound;
    QPointer<QAudioProbe> probe;@

    cpp:
    @ sound = new QMediaPlayer(this);
    probe = new QAudioProbe(this);
    if (probe->setSource(sound)) {
    connect(probe, SIGNAL(audioBufferProbed(QAudioBuffer)),
    this, SLOT(buf_callback(QAudioBuffer)));
    }@

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Ok will somebody add that Qt on Mac doesn't FUCKING support this

      1 Reply Last reply
      0
      • N Offline
        N Offline
        Nihilivin
        wrote on last edited by
        #3

        Same problem on W7 x64 here. No solution found till now. I'll tell you if I find something

        1 Reply Last reply
        0
        • N Offline
          N Offline
          Nihilivin
          wrote on last edited by
          #4

          I will do some checks according to that sourcecode "that sourcecode":http://osxr.org/qt/source/qtmultimedia/src/multimedia/audio/qaudioprobe.cpp , to see exactly where is the problem in QMediaPlayer

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Don't waste your time, Qt Multimedia is not cross-plateform and has never been so. It also seems abandoned so use libAV and PortAudio or something of the likes.

            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