docs/guide/audio: HE-AAC section and opts.sbr; audio/caf: SBR only at the described rate

This commit is contained in:
4DBug committed 2026-11-02 00:40:25 -06:00
1 parent 9a4cacc40b
commit 028bee3f59
3 files changed
+48 -1

No files matched your search

+4
View File
@@ -398,6 +398,10 @@ local function source(r: Bytes.Reader, p: Parsed): (Source?, Err.Err?)
if not dec then
return nil, err
end
-- HE-AAC: SBR output only when the description is at the SBR rate (else the AAC-LC core)
if dec.sbrOutput and dec.sampleRate ~= d.rate then
dec = Aac.decoder(asc :: buffer, { sbr = false })
end
local ad = dec :: Aac.Decoder
return {
channels = ad.channels,