[vlc-commits] DirectSound: decrease a bit the volume
Jean-Baptiste Kempf
git at videolan.org
Mon Sep 16 20:48:44 CEST 2013
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 16 20:15:06 2013 +0200| [49984f49d3004fec59304b4010c7df56d6a38d78] | committer: Jean-Baptiste Kempf
DirectSound: decrease a bit the volume
This should make 100% 3dB lower
Should close #9371
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=49984f49d3004fec59304b4010c7df56d6a38d78
---
modules/audio_output/directsound.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/audio_output/directsound.c b/modules/audio_output/directsound.c
index 8eba49b..6ff2382 100644
--- a/modules/audio_output/directsound.c
+++ b/modules/audio_output/directsound.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