[vlc-commits] mmdevice: fix volume scale (fixes #12825)

Rémi Denis-Courmont git at videolan.org
Thu Nov 20 21:21:31 CET 2014


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Nov 20 22:21:10 2014 +0200| [22fda3914ad118035162ddea9d64b6dfa4b4f071] | committer: Rémi Denis-Courmont

mmdevice: fix volume scale (fixes #12825)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=22fda3914ad118035162ddea9d64b6dfa4b4f071
---

 modules/audio_output/mmdevice.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/mmdevice.c b/modules/audio_output/mmdevice.c
index d41bb02..64ad796 100644
--- a/modules/audio_output/mmdevice.c
+++ b/modules/audio_output/mmdevice.c
@@ -975,7 +975,7 @@ static HRESULT MMSession(audio_output_t *aout, IMMDeviceEnumerator *it)
         {
             msg_Dbg(aout, "volume from %+f dB to %+f dB with %f dB increments",
                     min, max, inc);
-            base_volume = powf(10.f, max / 20.f + .3f);
+            base_volume = powf(10.f, max / 20.f);
         }
         else
             msg_Err(aout, "cannot get volume range (error 0x%lx)", hr);



More information about the vlc-commits mailing list