[vlc-commits] DirectSound: decrease a bit the volume
Jean-Baptiste Kempf
git at videolan.org
Mon Sep 16 20:49:48 CEST 2013
vlc/vlc-2.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 16 20:15:06 2013 +0200| [75511962ce15c123f10af8abb8e6709b2641004a] | committer: Jean-Baptiste Kempf
DirectSound: decrease a bit the volume
This should make 100% 3dB lower
Should close #9371
(cherry picked from commit 49984f49d3004fec59304b4010c7df56d6a38d78)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=75511962ce15c123f10af8abb8e6709b2641004a
---
modules/audio_output/directx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/directx.c b/modules/audio_output/directx.c
index fbcf0fc..55b54f5 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -357,7 +357,7 @@ static int VolumeSet( audio_output_t *p_aout, float volume )
int ret = 0;
/* millibels from linear amplification map 200% on DSBVOLUME_MAX */
- LONG mb = lroundf( 5000.f * log10f( volume / 2.f ));
+ LONG mb = lroundf( 6000.f * log10f( volume / 2.f ));
/* Clamp to allowed DirectSound range */
static_assert( DSBVOLUME_MIN < DSBVOLUME_MAX, "DSBVOLUME_* confused" );
More information about the vlc-commits
mailing list