[Scummvm-tracker] [ScummVM :: Bugs] #12329: BACKENDS: IOS: MP3 playback failing, libmad writing out of bounds
ScummVM :: Bugs
trac at scummvm.org
Wed Oct 19 20:04:10 UTC 2022
#12329: BACKENDS: IOS: MP3 playback failing, libmad writing out of bounds
----------------------+-----------------------------
Reporter: sluicebox | Owner: (none)
Type: defect | Status: new
Priority: high | Component: Port: iOS
Version: | Resolution:
Keywords: | Game: King's Quest 6
----------------------+-----------------------------
Comment (by dwatteau):
I don't know if `scummvm-ios7-libs-v2.zip` comes from an automated or a
manual build, but something like this on top of the final mad.h file could
maybe help:
{{{
--- mad.h.orig
+++ mad.h
@@ -24,7 +24,16 @@
extern "C" {
# endif
-# define FPM_INTEL
+/* XXX: Handle iOS Mach-O Universal libraries */
+# if defined(__aarch64__) || defined(__arm64__) || defined(__x86_64__)
+# define FPM_64BIT
+# elif defined(__arm__)
+# define FPM_ARM
+# elif defined(__i386__)
+# define FPM_INTEL
+# else
+# define FPM_DEFAULT
+# endif
}}}
As long as the same respective values are given to `--enable-fpm=` while
building for each architecture, before the final call to `lipo`.
--
Ticket URL: <https://bugs.scummvm.org/ticket/12329#comment:7>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM
More information about the Scummvm-tracker
mailing list