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

18 lines
503 B
QML
Raw Normal View History

import QtQuick 2.14
import QtMultimedia 5.14 as T
import AppLayouts.stores 1.0
T.Audio {
id: audio
property RootStore store
2022-02-09 09:43:23 +00:00
2020-07-10 18:31:12 +00:00
audioRole: Audio.NotificationRole
volume: T.QtMultimedia.convertVolume(store.volume,
T.QtMultimedia.LogarithmicVolumeScale,
T.QtMultimedia.LinearVolumeScale)
muted: !store.notificationSoundsEnabled
onError: console.warn("Audio error:", errorString, "; code:", error)
}