Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. No sound using QMediaPlayer but Warning: "Jack server not found"
Forum Updated to NodeBB v4.3 + New Features

No sound using QMediaPlayer but Warning: "Jack server not found"

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 2 Posters 469 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.
  • M Offline
    M Offline
    MeierS
    wrote on last edited by
    #1

    Previously we used QSoundEffect to play sounds (like switch on jingle, button tones etc. ) in our appliance. This worked fine but caused some choppy effects in combination with animations. So we switched to use QMediaPlayer instead.
    This solves the choppy sounds on our target, but on our native environment (Docker container) we simply do not hear anything. The states change correctly (QMediaPlayer::PlayingState, QMediaPlayer::StoppedState). But there is a warning: "Jack server not found"

    We configured our Docker for pulseaudio which worked fine for QSoundEffect.

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

      Hi and welcome to devnet,

      IIRC, QSoundEffect uses PulseAudio directly while QMediaPlayer uses GStreamer so there might be something to check there.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      M 1 Reply Last reply
      2
      • SGaistS SGaist

        Hi and welcome to devnet,

        IIRC, QSoundEffect uses PulseAudio directly while QMediaPlayer uses GStreamer so there might be something to check there.

        M Offline
        M Offline
        MeierS
        wrote on last edited by
        #3

        @SGaist Thanks a lot for this hint, this helped a lot. Installing the PulseAudio plugin for GStreamer fixes the issue.

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

          You're welcome !

          Since you have it working now, please mark the thread as solved using thr "Topic Tool" button or the three dotted menu beside the answer you deem correct so that other forum users may know a solution has been found :-)

          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