changeset 2194:c19a820de01e

Set volume before playback for OSS4.
author Jonathan Schleifer <js-audacious@webkeks.org>
date Wed, 28 Nov 2007 18:15:33 +0100
parents 36b9f3e6cbcf
children 9773d2c69857
files src/OSS4/audio.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/OSS4/audio.c	Tue Nov 27 18:03:20 2007 +0300
+++ b/src/OSS4/audio.c	Wed Nov 28 18:15:33 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;
 }