Use SoundEffect instead of MediaPlayer, so that media playback doesn't pause

This commit is contained in:
Matti Viljanen 2019-02-10 20:30:11 +02:00
parent 51f2542d80
commit 8d9516a494
No known key found for this signature in database
GPG key ID: CF32A1495158F888

View file

@ -36,19 +36,16 @@ Page {
}
}
MediaPlayer {
SoundEffect {
id: alertLow
audioRole: MediaPlayer.NotificationRole
volume: 0.6
autoLoad: true
source: settings.lowAlertFile
}
MediaPlayer {
SoundEffect {
id: alertHigh
audioRole: MediaPlayer.NotificationRole
volume: 0.6
autoLoad: true
source: settings.highAlertFile
}