mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-22 04:24:44 +00:00
loop music
This commit is contained in:
parent
e2a5a0a71e
commit
260a1278a4
1 changed files with 2 additions and 1 deletions
|
@ -23,9 +23,10 @@ void BackgroundMusicPlayer::playMusic(const QString& snd0path) {
|
|||
|
||||
m_currentMusic = newMusic;
|
||||
m_mediaPlayer->setSource(newMusic);
|
||||
m_mediaPlayer->setLoops(QMediaPlayer::Infinite);
|
||||
m_mediaPlayer->play();
|
||||
}
|
||||
|
||||
void BackgroundMusicPlayer::stopMusic() {
|
||||
m_mediaPlayer->stop();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue