Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Can't set QAudioProbe source with QMediaPlayer.

    General and Desktop
    2
    5
    1098
    Loading More Posts
    • 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.
    • Socapex
      Socapex last edited by

      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 Reply Quote 0
      • Socapex
        Socapex last edited by

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

        1 Reply Last reply Reply Quote 0
        • N
          Nihilivin last edited by

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

          1 Reply Last reply Reply Quote 0
          • N
            Nihilivin last edited by

            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 Reply Quote 0
            • Socapex
              Socapex last edited by

              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 Reply Quote 0
              • First post
                Last post