No sound using QMediaPlayer but Warning: "Jack server not found"
-
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.
-
Hi and welcome to devnet,
IIRC, QSoundEffect uses PulseAudio directly while QMediaPlayer uses GStreamer so there might be something to check there.
-
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 :-)