changeset 33680:9fde6b9e0cc1

Move audio related code from guiSetVideo to guiSetAudio.
author ib
date Wed, 29 Jun 2011 10:05:32 +0000
parents 2d3199623440
children 82cc91442a07
files gui/interface.c
diffstat 1 files changed, 16 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/gui/interface.c	Wed Jun 29 09:12:03 2011 +0000
+++ b/gui/interface.c	Wed Jun 29 10:05:32 2011 +0000
@@ -595,6 +595,22 @@
         if (arg && !guiInfo.sh_video)
             guiInfo.MovieWindow = False;
 
+        guiGetEvent(guiSetMixer, NULL);
+
+        if (gtkEnableAudioEqualizer) {
+            equalizer_t eq;
+            int i, j;
+
+            for (i = 0; i < 6; i++) {
+                for (j = 0; j < 10; j++) {
+                    eq.channel = i;
+                    eq.band    = j;
+                    eq.gain    = gtkEquChannels[i][j];
+                    gtkSet(gtkSetEqualizer, 0, &eq);
+                }
+            }
+        }
+
         wsVisibleWindow(&guiApp.subWindow, (guiInfo.MovieWindow ? wsShowWindow : wsHideWindow));
         break;
 
@@ -720,24 +736,6 @@
         else
             btnSet(evSetMoviePosition, btnReleased);
 
-        // audio
-
-        guiGetEvent(guiSetMixer, NULL);
-
-        if (gtkEnableAudioEqualizer) {
-            equalizer_t eq;
-            int i, j;
-
-            for (i = 0; i < 6; i++) {
-                for (j = 0; j < 10; j++) {
-                    eq.channel = i;
-                    eq.band    = j;
-                    eq.gain    = gtkEquChannels[i][j];
-                    gtkSet(gtkSetEqualizer, 0, &eq);
-                }
-            }
-        }
-
         // subtitle
 
 #ifdef CONFIG_DXR3