Build on Linux: compile locally, link/sign on the iPhone; FFmpeg audio decoders; SDK stub patching

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
astar76 2026-10-27 20:22:19 -05:00
commit 66f4e7e3ea

15
Native/ffdecode.h Normal file
View file

@ -0,0 +1,15 @@
// Minimal FFmpeg audio decoder for Mulberry: any input -> 48 kHz stereo float (planar).
#pragma once
#include <stdint.h>
typedef struct ff_dec ff_dec;
/// Opens a file; returns NULL if FFmpeg can't decode it.
ff_dec *ff_open(const char *path);
/// Total length in 48 kHz frames (0 when unknown).
int64_t ff_frames(ff_dec *d);
/// Reads up to `max` frames into left/right; returns frames written, 0 at end, <0 on error.
int ff_read(ff_dec *d, float *left, float *right, int max);
/// Seeks to a 48 kHz frame position.
void ff_seek(ff_dec *d, int64_t frame);
void ff_close(ff_dec *d);