diff options
author | marcus <marcus@FreeBSD.org> | 2003-07-03 23:29:10 +0800 |
---|---|---|
committer | marcus <marcus@FreeBSD.org> | 2003-07-03 23:29:10 +0800 |
commit | f21825bc62bc53e31e0dfcedaf2f46f69ecd8a19 (patch) | |
tree | 53566991f314271c5af7201bc083c424f8785310 /audio/alsaplayer | |
parent | 627d84c101135cdbf6314132c4b56518be32afaf (diff) | |
download | freebsd-ports-gnome-f21825bc62bc53e31e0dfcedaf2f46f69ecd8a19.tar.gz freebsd-ports-gnome-f21825bc62bc53e31e0dfcedaf2f46f69ecd8a19.tar.zst freebsd-ports-gnome-f21825bc62bc53e31e0dfcedaf2f46f69ecd8a19.zip |
Add a patch to check for AFMT_S16_NE which may not be defined on
older versions of -CURRENT and -STABLE.
Approved by: maintainer
Diffstat (limited to 'audio/alsaplayer')
-rw-r--r-- | audio/alsaplayer/files/patch-output_oss_oss.c | 18 |
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); |