[MPlayer-cvslog] r35638 - in trunk/gui: interface.c ui/main.c
ib
subversion at mplayerhq.hu
Sun Dec 9 15:44:58 CET 2012
Author: ib
Date: Sun Dec 9 15:44:58 2012
New Revision: 35638
Log:
Add comment.
Modified:
trunk/gui/interface.c
trunk/gui/ui/main.c
Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c Sun Dec 9 15:42:36 2012 (r35637)
+++ trunk/gui/interface.c Sun Dec 9 15:44:58 2012 (r35638)
@@ -758,7 +758,7 @@ int gui(int what, void *data)
btnModify(evSetVolume, guiInfo.Volume);
mixer_getbalance(mixer, &b);
- guiInfo.Balance = (b + 1.0) * 50.0;
+ guiInfo.Balance = (b + 1.0) * 50.0; // transform -1..1 to 0..100
if (guiInfo.Balance != last_balance) {
l = guiInfo.Volume * (100.0 - guiInfo.Balance) / 50.0;
Modified: trunk/gui/ui/main.c
==============================================================================
--- trunk/gui/ui/main.c Sun Dec 9 15:42:36 2012 (r35637)
+++ trunk/gui/ui/main.c Sun Dec 9 15:44:58 2012 (r35638)
@@ -306,7 +306,7 @@ NoPause:
case evSetBalance:
guiInfo.Balance=param;
- mixer_setbalance( mixer,(guiInfo.Balance - 50.0 ) / 50.0 );
+ mixer_setbalance( mixer,(guiInfo.Balance - 50.0 ) / 50.0 ); // transform 0..100 to -1..1
osd = osd_level;
osd_level = 0;
uiEventHandling(evSetVolume, guiInfo.Volume);
More information about the MPlayer-cvslog
mailing list