Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependency license texts are in `LICENSES/`. See "Why GPL-3.0-or-later" below.
| **GMP** 6.3.0 | **LGPL-3.0-or-later** or GPL-2.0-or-later | Static (`libgmp.a`). |
| **Nettle / Hogweed** 3.10.1 | **LGPL-3.0-or-later** or GPL-2.0-or-later | Static (`libnettle.a`, `libhogweed.a`). |
| **GnuTLS** 3.8.9 | LGPL-2.1-or-later | Static (`libgnutls.a`). Used by Wine's bcrypt/secur32/crypt32. |
| **FFmpeg** 7.1.5 — libavformat, libavcodec, libavutil, libswresample | **LGPL-2.1-or-later** | Static (`libavformat.a`, `libavcodec.a`, `libavutil.a`, `libswresample.a`). Configured `--disable-gpl --disable-nonfree --disable-version3 --disable-everything`, then only: the WMA-family decoders (`wmav1,wmav2,wmapro,wmalossless,xma1,xma2`), the `mp1,mp2,mp3` and `pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,pcm_f64le` decoders, the `mp3`, `wav` and `mov` (MP4/MOV/M4A) demuxers and the `mpegaudio` parser. No H.264, HEVC or AAC decoder or parser (those streams are decoded by Apple's VideoToolbox/AudioToolbox), no protocols, no muxers, no zlib. No GPL, version3 or non-free component is enabled, so the result is LGPL-2.1-or-later. Used only by `build/ntdll-unix/winegstreamer_unixlib_ios.c` and `build/ntdll-unix/wg_parser_av_ios.c`, winegstreamer's unix side on this port (the Windows WMA decoder MFT/DMO, and the wg_parser behind quartz's MP3/WAV splitters and Media Foundation's MP4 source); upstream Wine implements both with GStreamer, which does not exist on iOS. |
| **FFmpeg** 7.1.5 — libavformat, libavcodec, libavutil, libswresample | **LGPL-2.1-or-later** | Static (`libavformat.a`, `libavcodec.a`, `libavutil.a`, `libswresample.a`). Configured `--disable-gpl --disable-nonfree --disable-version3 --disable-everything`, then only: the WMA-family decoders (`wmav1,wmav2,wmapro,wmalossless,xma1,xma2`), the `mp1,mp2,mp3` and `pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,pcm_f64le` decoders, the Windows Media video decoders (`wmv1,wmv2,wmv3,vc1,msmpeg4v1,msmpeg4v2,msmpeg4v3`), the `mp3`, `wav`, `mov` (MP4/MOV/M4A) and `asf` (WMV/WMA) demuxers and the `mpegaudio` parser. No H.264, HEVC or AAC decoder or parser (those streams are decoded by Apple's VideoToolbox/AudioToolbox), no protocols, no muxers, no zlib. No GPL, version3 or non-free component is enabled, so the result is LGPL-2.1-or-later. Used only by `build/ntdll-unix/winegstreamer_unixlib_ios.c` and `build/ntdll-unix/wg_parser_av_ios.c`, winegstreamer's unix side on this port (the Windows WMA decoder MFT/DMO, and the wg_parser behind quartz's MP3/WAV splitters, Media Foundation's MP4 source and the Windows Media Format reader's ASF files); upstream Wine implements both with GStreamer, which does not exist on iOS. |
| **{fmt}** | MIT | Static (`libfmt.a`), via FEX. |
| **xxHash** | BSD-2-Clause | Static (`libxxhash.a`). |
| **Cephes** | permissive (Moshier) | Static (`libcephes_128bit.a`), via FEX. |
Expand Down
4 changes: 4 additions & 0 deletions app/Madeira/ConfigCatalog.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,13 @@ extension ConfigCatalog {
ConfigOption(key: "env.MADEIRA_GL_QUERY_BUFFER_OFFSETS", title: "32-bit GL query results as buffer offsets", kind: .bool, defaultValue: "1", category: "Graphics", note: "On (default): a 32-bit program's glGetQueryObject*v result pointer is an offset into the bound GL_QUERY_BUFFER (wined3d reads occlusion results that way; converting it as a pointer left the game spinning at 1 fps, ml1340). 0: the old pointer conversion.", choices: [], sources: []),
ConfigOption(key: "gl-vulkan", title: "Vulkan driver for OpenGL (Zink)", kind: .choice, defaultValue: "", category: "Graphics", note: "The Vulkan driver Zink runs desktop OpenGL (and d3d9 = wined3d) on: MoltenVK (default) or KosmicKrisp (gl/libvulkan_kosmickrisp.dylib); any other value is a .dylib name in the gl folder or an absolute path. env.MADEIRA_GL_VULKAN is the fallback. Read when a program first creates an OpenGL context; the log says \"ml1344 zink Vulkan library: ...\".", choices: [("", "MoltenVK (default)"), ("moltenvk", "MoltenVK"), ("kosmickrisp", "KosmicKrisp")], sources: ["build/win32u-unix/opengl_ios.c"]),
ConfigOption(key: "env.MADEIRA_DIAG", title: "", kind: .text, defaultValue: "", category: "Media", note: "MADEIRA_DIAG=1 lifts the cap; read once. Local to this file so the media unix side links against nothing but upstream's libntdll_unix.a.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_COMPRESSED", title: "Media: compressed WMV/WMA samples (32-bit programs)", kind: .text, defaultValue: "", category: "Media", note: "0 refuses the WM reader's compressed samples of an ASF again; by default an application that decodes them itself (KiriKiri's movie plugin, through the WMV/WMA decoder DMOs) gets the file's packets.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_PARSER", title: "", kind: .text, defaultValue: "", category: "Media", note: "", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_RESAMPLER", title: "Media: audio resampler", kind: .text, defaultValue: "", category: "Media", note: "0 refuses the resampler transform again; by default Media Foundation converts a movie's audio to the device mix format with libswresample.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_VIDEO", title: "Media: MP4 video (32-bit programs)", kind: .text, defaultValue: "", category: "Media", note: "0 limits the media parser to MP3/WAV; by default MP4 with H.264/HEVC video decodes through VideoToolbox.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_VIDEO_AHEAD", title: "Media: decode video ahead (32-bit programs)", kind: .text, defaultValue: "", category: "Media", note: "0 decodes a movie's video on the thread that asks for it, as before; by default each video stream decodes ahead on a thread of its own, so the audio is not held up behind a picture.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_VIDEO_FORMAT", title: "", kind: .text, defaultValue: "", category: "Media", note: "", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WG_WMV_TRANSFORM", title: "Media: WMV video decoder", kind: .text, defaultValue: "", category: "Media", note: "0 refuses every video transform again, as before: the WMVideo Decoder DMO and MFT cannot be created. By default they decode WMV1/2/3, WMVA and WVC1 with libavcodec. WMA is unaffected.", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WMA_DUMP", title: "", kind: .text, defaultValue: "", category: "Media", note: "", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "env.MADEIRA_WMA_SEARCH", title: "", kind: .text, defaultValue: "", category: "Media", note: "ml1120: MADEIRA_WMA_SEARCH=0 pins the decoder to the rate and flags this file worked out from the media type alone, which is what shipped before the ladder. A packet it cannot decode is then concealed with silence of that packet's length...", choices: [], sources: ["build/ntdll-unix/winegstreamer_unixlib_ios.c"]),
ConfigOption(key: "arena-mb", title: "", kind: .int, defaultValue: "0", category: "Memory & JIT pool", note: "ml1095: madeira.cfg arena-mb = N", choices: [], sources: ["build/ntdll-unix/virtual_ios.c"]),
Expand Down
21 changes: 14 additions & 7 deletions build/ffmpeg/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@
#
# - libavcodec: the WMA-family decoders behind the Windows WMA decoder
# MFT/DMO (wmav1, wmav2, wmapro, wmalossless, xma1, xma2), which FAudio
# uses for xWMA/XMA voices; MPEG-1 layer I/II/III and plain PCM decoders
# for the wg_parser.
# - libavformat: the wg_parser's demuxers -- mp3, wav and mov (MP4/MOV/M4A)
# -- and the mpegaudio parser the mp3 demuxer selects. No protocols: the
# parser reads through its own AVIOContext (the PE read thread's pull
# protocol), never a URL. No muxers.
# uses for xWMA/XMA voices, and the wg_parser uses for WMA audio in ASF;
# MPEG-1 layer I/II/III and plain PCM decoders for the wg_parser; and the
# Windows Media video decoders for its ASF files (wmv1, wmv2, wmv3, vc1,
# msmpeg4v1-v3): no platform decoder on iOS takes them, so the parser
# decodes them in software (wg_parser_av_ios.c, mav_lavc_video). A game's
# cutscenes played through the Windows Media Format reader (wmvcore) are
# such files; without these the reader failed to connect (0x80040265) and
# the game showed a white screen.
# - libavformat: the wg_parser's demuxers -- mp3, wav, mov (MP4/MOV/M4A)
# and asf (WMV/WMA) -- and the mpegaudio parser the mp3 demuxer selects. No
# protocols: the parser reads through its own AVIOContext (the PE read
# thread's pull protocol), never a URL. No muxers.
# - libswresample, libavutil.
#
# Deliberately NO H.264, HEVC or AAC decoder or parser: those streams are
Expand Down Expand Up @@ -113,7 +119,8 @@ CONFIG_ARGS=(
--enable-decoder=wmav1,wmav2,wmapro,wmalossless,xma1,xma2
--enable-decoder=mp1,mp2,mp3
--enable-decoder=pcm_u8,pcm_s16le,pcm_s24le,pcm_s32le,pcm_f32le,pcm_f64le
--enable-demuxer=mp3,wav,mov
--enable-decoder=wmv1,wmv2,wmv3,vc1,msmpeg4v1,msmpeg4v2,msmpeg4v3
--enable-demuxer=mp3,wav,mov,asf
--enable-parser=mpegaudio
--disable-programs
--disable-doc
Expand Down
Loading