forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on ea3c0df85aa612e66d2b2f1871d801ff4ef2cba2Filtered to shims/ruopus/src/lib.rsClear filter

2026-08-14

shim(ruopus): the Opus decoder seat edith consumes, over ec-opusAhmet Kaan Gümüş · 88cf2a7
shim(ruopus): the Opus decoder seat edith consumes, over ec-opus

The last audio shim the replica's [patch.crates-io] table was missing. It
is one re-export -- `MultistreamDecoder` -- because `ec-opus`'s already
has the incumbent's signature and, more to the point, its semantics:
`with_rate(rate, streams, coupled, &mapping)` with the same layout rules
and the same panic on one the RFC forbids, and output in the *mapping's*
channel order rather than the product's.

That last one is the only decision here. Both decoders emit Vorbis order
for RFC 7845 family 1 (FL, FC, FR, BL, BR, LFE), and edith permutes it
into film order at the call site (`audio.rs:vorbis_to_film_order`), so
the shim permutes nothing: putting it here would fold every surround
track twice. The doc comment says so, since a future reader's first
instinct will be to move it.

The incumbent's feature names are declared and empty. `spectrograms` was
its FFT backend, default-on because CELT synthesis is an N/4 complex FFT
per block and the fallback decoded a 5.1 film at 0.95x realtime; the
transform behind this crate is not behind a feature at all. They are
declared regardless because a [patch.crates-io] consumer that names a
feature the patch lacks fails to *resolve*.