mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-02 22:28:45 +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_currentMusic = newMusic;
|
||||||
m_mediaPlayer->setSource(newMusic);
|
m_mediaPlayer->setSource(newMusic);
|
||||||
|
m_mediaPlayer->setLoops(QMediaPlayer::Infinite);
|
||||||
m_mediaPlayer->play();
|
m_mediaPlayer->play();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BackgroundMusicPlayer::stopMusic() {
|
void BackgroundMusicPlayer::stopMusic() {
|
||||||
m_mediaPlayer->stop();
|
m_mediaPlayer->stop();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue