Draft: avsb: add AAC (Advanced Audio Codec) passthrough support for macOS
This merge request aims to add AAC (Advanced Audio Codec) passthrough support for macOS. The implementation ensures that AAC-encoded audio is directly passed through to external audio receivers, preserving the original quality and avoiding unnecessary decoding on the system.
Key Features:
AAC Passthrough:
Enables direct passthrough of AAC audio streams to external receivers (e.g., AV receivers, soundbars) on macOS.
Bypasses system-level decoding to maintain audio quality and reduce CPU overhead.
Supports high-quality multi-channel AAC streams for compatible devices.
Changes:
Modified Core Audio modules to allow AAC passthrough when connected to compatible receivers.
Integrated with macOS's AVSampleBuffer framework for handling compressed audio streams efficiently.
Updated the audio output pipeline to detect and enable passthrough when AAC streams are identified.
Testing and Known Issues:
Tested on macOS and iOS with external receivers supporting AAC passthrough.
We are in discussion with the Apple development team to debug the audio output issues.