summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-07-03 15:29:10 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-07-03 15:29:10 +0000
commit715b191398d62ee833f73e64a48d97a16a6908f0 (patch)
tree2809fc426add157116855be6dc03dddb243a5887 /audio
parentAdd mod_bandwidth 2.0.4, (diff)
Add a patch to check for AFMT_S16_NE which may not be defined on
older versions of -CURRENT and -STABLE. Approved by: maintainer
Notes
Notes: svn path=/head/; revision=84149
Diffstat (limited to 'audio')
-rw-r--r--audio/alsaplayer/files/patch-output_oss_oss.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/alsaplayer/files/patch-output_oss_oss.c b/audio/alsaplayer/files/patch-output_oss_oss.c
new file mode 100644
index 000000000000..f7307d280054
--- /dev/null
+++ b/audio/alsaplayer/files/patch-output_oss_oss.c
@@ -0,0 +1,18 @@
+--- output/oss/oss.c.orig Wed Jul 2 17:10:24 2003
++++ output/oss/oss.c Wed Jul 2 17:13:47 2003
+@@ -84,7 +84,15 @@
+
+ val = (count << 16) + hops;
+ ioctl(oss_fd,SNDCTL_DSP_SETFRAGMENT,&val);
++#ifndef AFMT_S16_NE
++#if BYTE_ORDER == LITTLE_ENDIAN
++ val = AFMT_S16_LE;
++#else
++ val = AFMT_S16_BE;
++#endif
++#else
+ val = AFMT_S16_NE;
++#endif
+ ioctl(oss_fd,SNDCTL_DSP_SETFMT,&val);
+ val = *channels - 1;
+ ioctl(oss_fd,SNDCTL_DSP_STEREO,&val);