freebsd-ports/audio/gkrellmvolume2/files/patch-oss__mixer.c
Mathieu Arnold 9fa9eb9ac7 Cleanup patches, a* categories.
Rename them to follow the make makepatch naming, and regenerate them.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-26 16:51:15 +00:00

21 lines
521 B
C

--- 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