From a5dd540bccc6ce20971a6680f076beedc13f2a95 Mon Sep 17 00:00:00 2001 From: BubsMcgee Date: Wed, 25 Nov 2026 14:11:53 -0500 Subject: xapu: decode Opus packets through runtime/opus_decoder (RT-XAPU-OPUS-DECODE) Builds on #1144 (RT-XAPU-CONNECT-LAYOUTS): the queue and layouts stay there; fill() decodes each process packet through a Rust C-ABI crate over BSD-3 opus-pure when cargo builds it, and keeps the table-of-contents silence path otherwise. Adds xapu_opus_test (a generated 440 Hz stereo packet decoded to 960 frames) and the CMake wiring; xapu_chad_test keeps covering the layouts and the silent path. No game data. --- runtime/opus_decoder/Cargo.toml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 runtime/opus_decoder/Cargo.toml (limited to 'runtime/opus_decoder/Cargo.toml') diff --git a/runtime/opus_decoder/Cargo.toml b/runtime/opus_decoder/Cargo.toml new file mode 100644 index 000000000..e3ed59bc3 --- /dev/null +++ b/runtime/opus_decoder/Cargo.toml @@ -0,0 +1,16 @@ +[package] +name = "leonida-opus-decoder" +version = "0.1.0" +edition = "2021" +license = "GPL-3.0-or-later" +publish = false + +[lib] +name = "leonida_opus_decoder" +crate-type = ["staticlib", "rlib"] + +[dependencies] +opus-pure = "0.2.4" + +[profile.release] +panic = "unwind" -- cgit v1.2.3