From 6743649a8b387c18bbb1572df4cda3eb3f6215b5 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Wed, 8 Jan 2025 16:59:48 +0100 Subject: [PATCH] Fix Mediaplayer Since Qt6, an audio device has to be explicitly set --- src/mediaplayer/QUMediaPlayer.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mediaplayer/QUMediaPlayer.cpp b/src/mediaplayer/QUMediaPlayer.cpp index 36c4fdc..5a62759 100644 --- a/src/mediaplayer/QUMediaPlayer.cpp +++ b/src/mediaplayer/QUMediaPlayer.cpp @@ -5,6 +5,7 @@ #include "QUSongDatabase.h" #include +#include #include "audioproperties.h" #include "fileref.h" @@ -50,6 +51,7 @@ QUSongInfo::QUSongInfo(QUSongFile *song) { QUMediaPlayer::QUMediaPlayer(QWidget *parent): QWidget(parent) { _player = new QMediaPlayer; + _player->setAudioOutput(new QAudioOutput); setupUi(this);