summaryrefslogtreecommitdiff
path: root/games/freesci/files/patch-src::sound::pcmout_oss.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-10-03 13:51:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-10-03 13:51:20 +0000
commitef229c587156d1557d14cda80f1066aa3968c84b (patch)
tree46605d71d57e4d23efaf608a7cd6c887644005d4 /games/freesci/files/patch-src::sound::pcmout_oss.c
parent- Use the correct patch, I forgot to sync dir before commit. (diff)
Update Port: emulators/freesci
- Update to latest release - Remove dependancy on libpng - Add switches for SDL, GGI and DirectFB support - Use X11 renderer as default - portlint Note: Since ScummVM is in games, this port should probably go to games to. It is not directly an emulator, but an game-data interpreter (just like ScummVM) PR: ports/51731 Submitted by: Ulrich Spoerlein <q@uni.de> Approved by: maintainer timeout
Notes
Notes: svn path=/head/; revision=90129
Diffstat (limited to 'games/freesci/files/patch-src::sound::pcmout_oss.c')
-rw-r--r--games/freesci/files/patch-src::sound::pcmout_oss.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/games/freesci/files/patch-src::sound::pcmout_oss.c b/games/freesci/files/patch-src::sound::pcmout_oss.c
new file mode 100644
index 000000000000..41333d03d40b
--- /dev/null
+++ b/games/freesci/files/patch-src::sound::pcmout_oss.c
@@ -0,0 +1,18 @@
+--- src/sound/pcmout_oss.c.orig Thu Feb 20 20:52:48 2003
++++ src/sound/pcmout_oss.c Thu Feb 20 21:02:06 2003
+@@ -75,6 +75,15 @@
+ return -1;
+ }
+
++/* Some OSS don't define the native endian */
++#ifndef AFMT_S16_NE
++ #if defined __i386__ || defined __alpha__
++ #define AFMT_S16_NE AFMT_S16_LE
++ #elif defined __mips__
++ #define AFMT_S16_NE AFMT_S16_BE
++ #endif
++ /* FIXME are these correct? */
++#endif
+ i = AFMT_S16_NE; /* Use NATIVE endian format... */
+ if (ioctl (oss_fd, SNDCTL_DSP_SETFMT, &i)) {
+ fprintf(stderr, "[PCM-OSS] Failed to set device output format\n");