Skip to content

Commit

Permalink
Merge pull request #51 from UltraStar-Deluxe/fix-mediaplayer
Browse files Browse the repository at this point in the history
Fix Mediaplayer
  • Loading branch information
bohning authored Jan 8, 2025
2 parents bb62c4c + 6743649 commit a662c4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mediaplayer/QUMediaPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include "QUSongDatabase.h"

#include <QRandomGenerator>
#include <QtMultimedia/QAudioOutput>

#include "audioproperties.h"
#include "fileref.h"
Expand Down Expand Up @@ -50,6 +51,7 @@ QUSongInfo::QUSongInfo(QUSongFile *song) {

QUMediaPlayer::QUMediaPlayer(QWidget *parent): QWidget(parent) {
_player = new QMediaPlayer;
_player->setAudioOutput(new QAudioOutput);

setupUi(this);

Expand Down

0 comments on commit a662c4b

Please sign in to comment.