Audio: support 12-channel AudioOut2 output with SDL (#498)

* Audio: support 12-channel AudioOut2 output via stereo downmix

* Audio: document 7.1.4 downmix matrix and align s16 coefficients

* audio: use shared 12-to-8 channel conversion for SDL

---------

Co-authored-by: Airsoft Project <airsoft@example.com>
Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
Beru
2026-09-07 10:58:23 +02:00
committed by GitHub
parent f9b279c49d
commit bbe3bd0304
4 changed files with 79 additions and 37 deletions
+5
View File
@@ -261,6 +261,11 @@ static AudioInternal::Format audioout2_data_format_to_audio_format(uint32_t data
case 8:
return is_std ? AudioInternal::Format::Float8ChStd
: AudioInternal::Format::Float8Ch;
case 12:
if (!is_std) {
return AudioInternal::Format::Float12Ch;
}
break;
default: break;
}
break;