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

14 lines
326 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: localAccountSensitiveSettings.volume
muted: !localAccountSensitiveSettings.notificationSoundsEnabled
}