16 lines
467 B
QML
Raw Normal View History

import QtQuick 2.14
import QtMultimedia 5.14 as T
T.Audio {
id: audio
property var store
2022-02-09 10:43:23 +01:00
2020-07-10 14:31:12 -04: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)
}