Repository navigation
Conversation
Owner
|
Merged into main as 8e8ea51 (cherry-picked onto main, authorship kept). Thanks! The only edit: the comment above device_channels is reworded in the file's comment style; the code is unchanged. The new t_audio surround case fails on the previous main (center channel silent) and passes with the change; t_audio_spsc passes. |
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.
Six-channel AudioOut buffers can lose dialogue and spatial effects on a stereo device. The current AudioUnit receives the six channels directly. A synthetic Apple AudioConverter probe preserves only front left/right with its default six-to-two mapping; center, LFE and rear-only inputs produce zero output, including with an explicit input layout.
This change offers stereo to the output AudioUnit and mixes FL/FR/C/LFE/BL/BR explicitly, using the existing audio renderer's Q15 coefficients. Guest queue accounting remains six-channel. A bounded stack scratch buffer keeps heap allocations out of the real-time callback; sums use int64 and saturate to PCM16.
Validation on public main
ebe75c9d5d34486f714678f850f0e74bbab398ac:Separately, a local combined iPhone build containing this correction was tested with Luigi's Mansion 3 1.4.0. The player confirmed that the missing voices/SFX became audible, and callback diagnostics reported no underruns in the observed windows. That device build also contained other unrelated fixes; it is integration evidence, not an isolated device A/B.
The multichannel Vorbis fix discussed in #60 is already in main and addresses a different decoder path. This patch changes direct PCM AudioOut output. Only open-source runtime changes and synthetic regression data are included.
Asset-free AudioConverter probe
Save as
coreaudio-channel-probe.c, then run: