changeset 2195:9773d2c69857

Automated merge with ssh://hg.atheme.org//hg/audacious-plugins
author Jonathan Schleifer <js-audacious@webkeks.org>
date Wed, 28 Nov 2007 18:15:40 +0100
parents c19a820de01e (diff) 80d7ab8f2ec5 (current diff)
children dfa3c3aa2dc7
files
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/OSS4/audio.c	Wed Nov 28 16:19:57 2007 +0300
+++ b/src/OSS4/audio.c	Wed Nov 28 18:15:40 2007 +0100
@@ -593,6 +593,7 @@
 gint
 oss_open(AFormat fmt, gint rate, gint nch)
 {
+    int l, r;
 
     if (oss_cfg.use_alt_audio_device && oss_cfg.alt_audio_device)
         device_name = g_strdup(oss_cfg.alt_audio_device);
@@ -645,6 +646,8 @@
     buffer_thread = g_thread_create(oss_loop, NULL, TRUE, NULL);
 
     oss_get_volume(&start_vol_l, &start_vol_r);
+    aud_input_get_volume(&l, &r);
+    oss_set_volume(l, r);
 
     return 1;
 }