fix(notifications): The sound of notifications is harsh and annoying
Use logarithmic sound volume scale instead of linear when interpreting the sound volume value TLDR; we were literally overblowing the speakers with absolute sound volume levels; for the whole story I recommend reading: https://www.dr-lex.be/info-stuff/volumecontrols.html Also play a sound preview when changing the volume in Settings Needs https://github.com/status-im/dotherside/pull/83 Fixes #8426
This commit is contained in:
parent
2087a5322b
commit
668ea868c4
|
@ -468,6 +468,11 @@ SettingsContentBase {
|
|||
|
||||
Component.onCompleted: {
|
||||
value = appSettings.volume
|
||||
volumeSlider.valueChanged.connect(() => {
|
||||
// play a sound preview, but not on startup
|
||||
Global.notificationSound.stop()
|
||||
Global.notificationSound.play()
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -7,7 +7,9 @@ T.Audio {
|
|||
property var store
|
||||
|
||||
audioRole: Audio.NotificationRole
|
||||
volume: store.volume
|
||||
volume: T.QtMultimedia.convertVolume(store.volume,
|
||||
T.QtMultimedia.LogarithmicVolumeScale,
|
||||
T.QtMultimedia.LinearVolumeScale)
|
||||
muted: !store.notificationSoundsEnabled
|
||||
onError: console.warn("Audio error:", errorString, "; code:", error)
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 5fecb811aa471c609f06534775599ff245f12c83
|
||||
Subproject commit 75b70971caf863629b4af83be254c04a84ef8c1e
|
Loading…
Reference in New Issue