Mercurial > audlegacy
diff src/audacious/ui_main.c @ 4587:ab8bc8a89a52
remove ui_main_set_initial_volume, call volume set hook instead
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Sun, 25 May 2008 15:12:17 +0200 |
parents | 7f8a87023730 |
children | d69b2bcea170 |
line wrap: on
line diff
--- a/src/audacious/ui_main.c Fri May 23 15:37:45 2008 +0200 +++ b/src/audacious/ui_main.c Sun May 25 15:12:17 2008 +0200 @@ -1948,29 +1948,6 @@ GDK_THREADS_LEAVE(); } -void -ui_main_set_initial_volume(void) -{ - gint vl, vr, b, v; - - input_get_volume(&vl, &vr); - - vl = CLAMP(vl, 0, 100); - vr = CLAMP(vr, 0, 100); - v = MAX(vl, vr); - if (vl > vr) - b = (gint) rint(((gdouble) vr / vl) * 100) - 100; - else if (vl < vr) - b = 100 - (gint) rint(((gdouble) vl / vr) * 100); - else - b = 0; - - mainwin_set_volume_slider(v); - equalizerwin_set_volume_slider(v); - mainwin_set_balance_slider(b); - equalizerwin_set_balance_slider(b); -} - static void set_timer_mode(TimerMode mode) {