status-desktop/ui/imports/utils/Audio.qml

15 lines
301 B
QML

import QtQuick 2.13
import QtMultimedia 5.13
Audio {
id: audio
property var store
property string track: "error.mp3"
source: Qt.resolvedUrl("./../assets/audio" + track)
audioRole: Audio.NotificationRole
volume: store.volume
muted: !store.notificationSoundsEnabled
}