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

13 lines
289 B
QML
Raw Normal View History

import QtQuick 2.13
import QtMultimedia 5.13
Audio {
id: audio
property string track: "error.mp3"
source: Qt.resolvedUrl("./../assets/audio" + track)
2020-07-10 18:31:12 +00:00
audioRole: Audio.NotificationRole
volume: appSettings.volume
muted: !appSettings.notificationSoundsEnabled
}