diff options
Diffstat (limited to 'games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff')
-rw-r--r-- | games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff b/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff new file mode 100644 index 000000000000..b24de16d41c1 --- /dev/null +++ b/games-emulation/snes9x/files/snes9x-139-r1-BE-sound-fix.diff @@ -0,0 +1,26 @@ +--- release/unix/unix.cpp.orig 2003-03-02 03:33:54.000000000 +0100 ++++ release/unix/unix.cpp 2003-03-02 03:35:10.000000000 +0100 +@@ -1463,7 +1463,11 @@ + perror ("ioctl SNDCTL_DSP_SETTRIGGER"); + #endif + ++#ifdef MSB_FIRST ++ J = AFMT_S16_BE; ++#else + J = AFMT_S16_LE; ++#endif + // J = AFMT_U8; + if (ioctl (so.sound_fd, SNDCTL_DSP_SETFMT, &J) < 0) + { +@@ -1471,7 +1475,11 @@ + return (FALSE); + } + ++#ifdef MSB_FIRST ++ if (J != AFMT_S16_BE) ++#else + if (J != AFMT_S16_LE) ++#endif + { + so.sixteen_bit = FALSE; + J = AFMT_U8; |