]> git.sesse.net Git - vlc/commitdiff
* modules/gui/macosx/controls.m:
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 12 Feb 2003 14:22:23 +0000 (14:22 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 12 Feb 2003 14:22:23 +0000 (14:22 +0000)
  - fixed the mute and volumeup volumedown when you use them mixed.
* src/audio_output/intf.c:
  - set "saved-volume" on volume up, volume down.

modules/gui/macosx/controls.m
src/audio_output/intf.c

index d22a486e3a3e12feecb6be4921b34f44001ea4c9..113dca602ff10fa839fb00c2376f5cc28f7298c4 100644 (file)
@@ -2,7 +2,7 @@
  * controls.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: controls.m,v 1.27 2003/02/10 00:41:45 hartman Exp $
+ * $Id: controls.m,v 1.28 2003/02/12 14:22:23 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
 {
     intf_thread_t * p_intf = [NSApp getIntf];
 
-    aout_VolumeUp( p_intf, 1, NULL );
-
     if( p_intf->p_sys->b_mute )
     {
         [self mute: nil];
     }
 
+    aout_VolumeUp( p_intf, 1, NULL );
+
     [self updateVolumeSlider];
 }
 
 {
     intf_thread_t * p_intf = [NSApp getIntf];
 
-    aout_VolumeDown( p_intf, 1, NULL );
-
     if( p_intf->p_sys->b_mute )
     {
         [self mute: nil];
     }
+    
+    aout_VolumeDown( p_intf, 1, NULL );
 
     [self updateVolumeSlider];
 }
index 5ec9a2c8d3e306c13b89f73840dde37ded1a7008..850a5fce76e3ac983b4a19b2ee08e852ba6400f4 100644 (file)
@@ -2,7 +2,7 @@
  * intf.c : audio output API towards the interface modules
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: intf.c,v 1.16 2003/02/09 01:13:43 massiot Exp $
+ * $Id: intf.c,v 1.17 2003/02/12 14:22:23 hartman Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *
@@ -140,6 +140,7 @@ int __aout_VolumeUp( vlc_object_t * p_object, int i_nb_steps,
         i = AOUT_VOLUME_MAX;
     }
     config_PutInt( p_object, "volume", i );
+    config_PutInt( p_object, "saved-volume", i );
     if ( pi_volume != NULL ) *pi_volume = (audio_volume_t)i;
 
     if ( p_aout == NULL ) return 0;
@@ -175,6 +176,7 @@ int __aout_VolumeDown( vlc_object_t * p_object, int i_nb_steps,
         i = AOUT_VOLUME_MIN;
     }
     config_PutInt( p_object, "volume", i );
+    config_PutInt( p_object, "saved-volume", i );
     if ( pi_volume != NULL ) *pi_volume = (audio_volume_t)i;
 
     if ( p_aout == NULL ) return 0;