[vlc-commits] DirectSound: fix inverted volume report
Rémi Denis-Courmont
git at videolan.org
Thu Aug 2 17:26:06 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Aug 2 18:28:05 2012 +0300| [138e83c7bc0e346b2cf22e84762b0e2b93092b7b] | committer: Rémi Denis-Courmont
DirectSound: fix inverted volume report
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=138e83c7bc0e346b2cf22e84762b0e2b93092b7b
---
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 63b6e60..df43def 100644
--- a/modules/audio_output/directx.c
+++ b/modules/audio_output/directx.c
@@ -618,7 +618,7 @@ static int VolumeSet( audio_output_t *p_aout, float vol )
InterlockedExchange(&sys->volume.volume, mb);
/* Convert back to UI volume */
- vol = cbrtf(powf(10.f, ((float)mb) / -2000.f));
+ vol = cbrtf(powf(10.f, ((float)mb) / 2000.f));
aout_VolumeReport( p_aout, vol );
return ret;
}
More information about the vlc-commits
mailing list