summary refs log tree commit diff
path: root/src/ui/MxcMediaProxy.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2024-01-11 22:31:53 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2024-01-11 22:32:34 +0100
commit2dea689fa5bf00adfd36c9afb467bf75ea0be49a (patch)
treed678f1433305aa171d2785df2a3b288811d2db57 /src/ui/MxcMediaProxy.cpp
parentTranslated using Weblate (Dutch) (diff)
downloadnheko-2dea689fa5bf00adfd36c9afb467bf75ea0be49a.tar.xz
Make volume control logarithmic again
Diffstat (limited to 'src/ui/MxcMediaProxy.cpp')
-rw-r--r--src/ui/MxcMediaProxy.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/MxcMediaProxy.cpp b/src/ui/MxcMediaProxy.cpp

index 4127121b..39fdb155 100644 --- a/src/ui/MxcMediaProxy.cpp +++ b/src/ui/MxcMediaProxy.cpp
@@ -43,7 +43,8 @@ MxcMediaProxy::MxcMediaProxy(QObject *parent) nhlog::ui()->debug("Set audio output"); auto newOut = new QAudioOutput(this); newOut->setMuted(muted_); - newOut->setVolume(volume_); + newOut->setVolume(QAudio::convertVolume( + volume_, QAudio::LogarithmicVolumeScale, QAudio::LinearVolumeScale)); setAudioOutput(newOut); } });