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

14 lines
326 B
QML

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