]> git.sesse.net Git - vlc/commitdiff
Update timer
authorClément Stenac <zorglub@videolan.org>
Sun, 16 May 2004 13:46:58 +0000 (13:46 +0000)
committerClément Stenac <zorglub@videolan.org>
Sun, 16 May 2004 13:46:58 +0000 (13:46 +0000)
modules/gui/wxwindows/timer.cpp

index 517a3f930ca5b489dab7078e3019bfe07ff662eb..6c29a5aef7a4fd33289c721d7ebdd4eacef41149 100644 (file)
@@ -214,6 +214,14 @@ void Timer::Notify()
                     }
                 }
             }
+            /* Take care of the volume */
+            audio_volume_t i_volume;
+            aout_VolumeGet( p_intf, &i_volume );
+            p_main_interface->volctrl->SetValue( i_volume * 200 *2  /
+                                                 AOUT_VOLUME_MAX );
+            p_main_interface->volctrl->SetToolTip(
+                wxString::Format((wxString)wxU(_("Volume")) + wxT(" %d"),
+                i_volume * 200 / AOUT_VOLUME_MAX ) );
 
             /* Manage Playing status */
             if( i_old_playing_status != p_input->stream.control.i_status )