[MPlayer-cvslog] r37054 - in trunk/gui: app/app.h ui/actions.c win32/skinload.h

ib subversion at mplayerhq.hu
Mon Mar 24 11:26:33 CET 2014


Author: ib
Date: Mon Mar 24 11:26:33 2014
New Revision: 37054

Log:
Add an internal event to set balance.

It does what the external one does except for
triggering the OSD display.

Modified:
   trunk/gui/app/app.h
   trunk/gui/ui/actions.c
   trunk/gui/win32/skinload.h

Modified: trunk/gui/app/app.h
==============================================================================
--- trunk/gui/app/app.h	Mon Mar 24 11:18:55 2014	(r37053)
+++ trunk/gui/app/app.h	Mon Mar 24 11:26:33 2014	(r37054)
@@ -82,6 +82,7 @@ enum {
     ivSetDVDSubtitle,
     ivPlayDVD,
     ivSetVolume,
+    ivSetBalance,
     ivShowPopUpMenu,
     ivHidePopUpMenu,
     ivRedraw

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Mon Mar 24 11:18:55 2014	(r37053)
+++ trunk/gui/ui/actions.c	Mon Mar 24 11:26:33 2014	(r37054)
@@ -344,10 +344,14 @@ play:
         break;
 
     case evSetBalance:
+    case ivSetBalance:
         guiInfo.Balance = param;
         mixer_setbalance(mixer, (guiInfo.Balance - 50.0) / 50.0);     // transform 0..100 to -1..1
         uiEvent(ivSetVolume, guiInfo.Volume);
 
+        if (ev == ivSetBalance)
+            break;
+
         if (osd_level) {
             osd_visible = (GetTimerMS() + 1000) | 1;
             vo_osd_progbar_type  = OSD_BALANCE;

Modified: trunk/gui/win32/skinload.h
==============================================================================
--- trunk/gui/win32/skinload.h	Mon Mar 24 11:18:55 2014	(r37053)
+++ trunk/gui/win32/skinload.h	Mon Mar 24 11:26:33 2014	(r37054)
@@ -193,6 +193,7 @@ enum
   ivSetDVDSubtitle,
   ivPlayDVD,
   ivSetVolume,
+  ivSetBalance,
   ivShowPopUpMenu,
   ivHidePopUpMenu,
   ivRedraw


More information about the MPlayer-cvslog mailing list