changeset 1216:cc04ccffaa8d

ignore the VMIX balance setting until it gets fixed by the OSS4 devs
author Cristi Magherusan <majeru@atheme-project.org>
date Sun, 08 Jul 2007 22:26:25 +0300
parents 386342d66a4f
children d4efe4889489
files src/OSS4/audio.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/OSS4/audio.c	Sat Jul 07 05:43:49 2007 +0300
+++ b/src/OSS4/audio.c	Sun Jul 08 22:26:25 2007 +0300
@@ -746,10 +746,11 @@
 
 void
 oss_set_volume(int l, int r)
-{
-    int v;
+{   
+    if(l!=r)
+        l=r=((l>r) ? l : r);
     long cmd=SNDCTL_DSP_SETPLAYVOL;   
-    v = (r << 8) | l;
+    int v = (r << 8) | l;
     ioctl(fd, cmd, &v);
 }