mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Add alert sound file to settings
This commit is contained in:
parent
40fc8ade20
commit
a495cf1b3b
5 changed files with 21 additions and 6 deletions
|
|
@ -84,7 +84,8 @@ void MediaManager::Play(types::AudioFile media)
|
|||
|
||||
logger_->debug("Playing audio: {}", path);
|
||||
|
||||
p->mediaPlayer_->setSource(QUrl(QString::fromStdString(path)));
|
||||
p->mediaPlayer_->setSource(
|
||||
QUrl(QString("qrc:%1").arg(QString::fromStdString(path))));
|
||||
|
||||
QMetaObject::invokeMethod(p->mediaPlayer_, &QMediaPlayer::play);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue