Skip to content

Share AudioFrame plane count with AudioPlane - #2504

Merged
WyattBlue merged 1 commit into
masterfrom
audio-nb-planes
Nov 2, 2026
Merged

WyattBlue merged 1 commit into
masterfrom
audio-nb-planes

Conversation

@WyattBlue

Copy link
Copy Markdown
Member

Follow-up to #2502.

  • Factor the plane-count formula into AudioFrame._nb_planes() so AudioFrame.planes and AudioPlane.__cinit__ share one definition. The original bug came from these two copies disagreeing.
  • Add test_manual_fltp_22_2_constructor: a 24-channel 22.2 layout, covering the more-than-8-channel case where extended_data is a separate heap array.

Factor the plane-count formula into AudioFrame._nb_planes() so
AudioFrame.planes and AudioPlane.__cinit__ cannot disagree, and add a
regression test for layouts with more than 8 channels.
@WyattBlue
WyattBlue merged commit 1e29f47 into master Nov 2, 2026
10 checks passed
@WyattBlue
WyattBlue deleted the audio-nb-planes branch November 2, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant