Mercurial > audlegacy-plugins
comparison src/OSS4/audio.c @ 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 | 2a722c3ccd9e |
| children | 4cf6ccace89c |
comparison
equal
deleted
inserted
replaced
| 1215:386342d66a4f | 1216:cc04ccffaa8d |
|---|---|
| 744 *l = (v & 0x00FF); | 744 *l = (v & 0x00FF); |
| 745 } | 745 } |
| 746 | 746 |
| 747 void | 747 void |
| 748 oss_set_volume(int l, int r) | 748 oss_set_volume(int l, int r) |
| 749 { | 749 { |
| 750 int v; | 750 if(l!=r) |
| 751 l=r=((l>r) ? l : r); | |
| 751 long cmd=SNDCTL_DSP_SETPLAYVOL; | 752 long cmd=SNDCTL_DSP_SETPLAYVOL; |
| 752 v = (r << 8) | l; | 753 int v = (r << 8) | l; |
| 753 ioctl(fd, cmd, &v); | 754 ioctl(fd, cmd, &v); |
| 754 } | 755 } |
| 755 | 756 |
| 756 void | 757 void |
| 757 close_mixer_device() | 758 close_mixer_device() |
