If you play games/supertux on a big-endian machine, the music has the
wrong byte order and sounds like noise.  (If you turn off the music,
the sound effects are correct.)  The below diff fixes it; the diff is
missing the REVISION bump.

I tried to mail maintainer Pascal Stumpf in October, but gmail failed
with "451 Temporary failure, please try again later."

My big-endian PowerBook G4 runs OpenBSD/macppc.  This machine is too
slow to play SuperTux at full speed, but the game becomes playable if
the window is not too big.

Index: patches/patch-src_audio_ogg_sound_file_cpp
===================================================================
RCS file: patches/patch-src_audio_ogg_sound_file_cpp
diff -N patches/patch-src_audio_ogg_sound_file_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_audio_ogg_sound_file_cpp  10 Nov 2018 21:45:38 -0000
@@ -0,0 +1,17 @@
+$OpenBSD$
+
+Fix music on big-endian platforms
+https://github.com/SuperTux/supertux/commit/a154c70
+
+Index: src/audio/ogg_sound_file.cpp
+--- src/audio/ogg_sound_file.cpp.orig
++++ src/audio/ogg_sound_file.cpp
+@@ -16,6 +16,8 @@
+ 
+ #include "audio/ogg_sound_file.hpp"
+ 
++#include <config.h>
++
+ #include <assert.h>
+ 
+ OggSoundFile::OggSoundFile(PHYSFS_file* file_, double loop_begin_, double 
loop_at_) :
Index: patches/patch-src_audio_wav_sound_file_cpp
===================================================================
RCS file: patches/patch-src_audio_wav_sound_file_cpp
diff -N patches/patch-src_audio_wav_sound_file_cpp
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_audio_wav_sound_file_cpp  10 Nov 2018 21:45:38 -0000
@@ -0,0 +1,17 @@
+$OpenBSD$
+
+Fix music on big-endian platforms
+https://github.com/SuperTux/supertux/commit/a154c70
+
+Index: src/audio/wav_sound_file.cpp
+--- src/audio/wav_sound_file.cpp.orig
++++ src/audio/wav_sound_file.cpp
+@@ -16,6 +16,8 @@
+ 
+ #include "audio/wav_sound_file.hpp"
+ 
++#include <config.h>
++
+ #include <string.h>
+ #include <stdint.h>
+ #include <assert.h>


-- 
George Koehler <kern...@gmail.com>

Reply via email to