Repository navigation
feat(audioout): implement 12-channel AudioOut2 ports - #653
Merged
oneandonlydean merged 1 commit intoOct 6, 2026
Merged
Conversation
Celegans12
force-pushed
the
feat/audioout2-12-channel-ports
branch
from
October 5, 2026 15:51
a66fb58 to
00e216f
Compare
Contributor
Author
|
The Linux job failed on |
Celegans12
force-pushed
the
feat/audioout2-12-channel-ports
branch
from
October 5, 2026 16:53
00e216f to
04da162
Compare
9 tasks done
Celegans12
force-pushed
the
feat/audioout2-12-channel-ports
branch
from
October 5, 2026 19:12
04da162 to
67cce61
Compare
Celegans12
force-pushed
the
feat/audioout2-12-channel-ports
branch
from
October 5, 2026 20:41
67cce61 to
7555c10
Compare
sceAudioOut2PortCreate threw for 12-channel ports, which PPSA26344 creates as its two 7.1.4 float beds (data format 0xc00). Each accepted layout (1, 2, 6, 8 or 12 channels, float or int16) now folds into the stereo mix through a coefficient table: centre, side, back and top front channels at -3 dB, top back channels at -6 dB into the front, LFE dropped. Zero coefficients are skipped, so NaN or Inf on a dropped channel does not reach the mix. Ports of 3, 4, 5 or 7 channels, which were mixed as L/R, now throw, as do other counts and formats with any of bits 12-31 set. The assumed format fields, channel order and coefficients are listed in TechnicalDebt. The new audio_out2_port_layouts test checks each layout's fold, float and int16, and the formats that throw.
Celegans12
force-pushed
the
feat/audioout2-12-channel-ports
branch
from
October 6, 2026 00:19
7555c10 to
799aaf5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
sceAudioOut2PortCreatethrew for every 12-channel port (data format 0xc00 is not implemented).audio.cpp) reads the order L R C LFE Ls Rs Lb Rb Ltf Rtf Ltb Rtb, at other gains.data_format0xc00,flags0 and 0x2) and at least 38 mono object ports.libSceAudioOut/CMakeLists.txttest block; whichever merges second needs a one-line rebase.Tested
maincb33f85: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)audio_out2_port_layouts: the float and int16 fold of each layout, bit 7, the height channels, an infinite LFE and the formats that throw. Each row fails with its fix removed; onmainit fails at the 5.1 row. It and the other audio tests also pass under--repeat until-fail:5.mainthe first bed throws; with this change both beds and the object ports are created.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)