mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add a patch to check for AFMT_S16_NE which may not be defined on
older versions of -CURRENT and -STABLE. Approved by: maintainer
This commit is contained in:
parent
26390dc1ff
commit
715b191398
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=84149
18
audio/alsaplayer/files/patch-output_oss_oss.c
Normal file
18
audio/alsaplayer/files/patch-output_oss_oss.c
Normal file
@ -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);
|
Loading…
Reference in New Issue
Block a user