diff options
Diffstat (limited to 'audio/gkrellmvolume2/files/patch-oss__mixer.c')
-rw-r--r-- | audio/gkrellmvolume2/files/patch-oss__mixer.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/audio/gkrellmvolume2/files/patch-oss__mixer.c b/audio/gkrellmvolume2/files/patch-oss__mixer.c new file mode 100644 index 000000000000..f6892f590977 --- /dev/null +++ b/audio/gkrellmvolume2/files/patch-oss__mixer.c @@ -0,0 +1,21 @@ +--- oss_mixer.c.orig 2004-08-19 20:07:27 UTC ++++ oss_mixer.c +@@ -32,6 +32,9 @@ + #else + #include <sys/soundcard.h> + #endif ++#if defined(SOUND_MIXER_INFO) && defined(__FreeBSD__) ++#undef SOUND_MIXER_INFO ++#endif + + #include "mixer.h" + #include "oss_mixer.h" +@@ -126,7 +129,7 @@ oss_mixer_device_get_volume(mixer_t *mix + long amount; + ioctl(OSSMIXER(mixer)->fd,MIXER_READ(OSSMIXER(mixer)->table[devid]),&amount); + *left = amount & 0xff; +- *right = amount >> 8; ++ *right = (amount >> 8) & 0xff; + } + + static void |