Files
RetroArch/samples/audio
libretroadmin e12fbf782e resampler: state() saves and loads a stream
A core saving a state mid-stream needs the resampler's: the rings, the
clocks, the decimation stages and their crossfade. Each backend had
these as private fields, so a core kept its own copy of the struct
layout and broke on every resync. The vtable gains an optional state():
the size with no buffer, else a copy out or in, refused when the size
does not match the instance's configuration. The sinc carries its whole
state block and every clock, the nearest its fraction.
samples/audio/resampler_state saves at fixed ratios and below the design
ratio, mid-crossfade and settled, loads into an instance with a stream
of its own and requires the continuation bit for bit, and checks a
wrong size is refused.
2026-11-09 20:34:47 +01:00
..
2026-11-09 02:07:57 +01:00