Skip to content
Snippets Groups Projects

coreaudio: handle unknown channels

Previously, unknown channels were just ignored, causing output channels mismatch. Unknown channels need to be handled by doing:

  • Setup the renderer with the total number of channels given by kAudioDevicePropertyPreferredChannelLayout
  • Realloc blocks, reorder them, and put 0s for unknown channels
  • Change bytes<>ticks conversion factor (i_bytes_per_frame) to not mess with timings.

This can only happen on macOS when the user configured "Speakers" via the "Audio MIDI Setup" app.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading