Draft: audiotrack: add AAC passthrough support for Android
This merge request aims to add support for AAC (Advanced Audio Codec) transmission through S/PDIF and Bluetooth on Android devices. The implementation ensures seamless integration with existing audio output modules, allowing high-quality audio streaming via these interfaces.
Key Features:
AAC over Bluetooth:
Adds support for Bluetooth transmission of AAC-encoded audio.
Compatible with Android Bluetooth audio profiles (A2DP).
Changes:
Updated audio output modules to support AAC encoding for S/PDIF and Bluetooth.
Modified audiotrack.c and related modules for proper AAC handling.
Testing:
Tested on Android devices with Bluetooth audio outputs, HDMI passthrough is yet to be tested.
Verified compatibility with various Bluetooth-enabled speakers and receivers supporting AAC codec.
Known Issues:
AAC playback often fallsback to using the a2dp_aac_encoder or doesn't output satisfactory playback when using the jfields.AudioFormat.ENCODING_AAC_LC.