Multi-channel support for platform audio effects

Which system do you use? Android, Ubuntu, OOWOW or others?

Android

Which version of system do you use? Please provide the version of the system here:

Android 11

Please describe your issue below:

How do I enable multi-channel audio support for the android effects pipeline on Khadas vim4’s Android 11 image? I am compile the image from source and integrated a multi-channel audio effect at the frameworks/av/media/libeffects level. The multi-channel effect is currently receiving a 2-channel config even when I playback an MP4 that has 5.1 aac audio.

Is this possible at all?

Thanks.

Post a console log of your issue below:


**Delete this line and post your log here.**

@cedrictio
Can you provide us with the testing operation method or an APK for us to test?
You can also test it on Android 14.

Hi,

Thanks for the prompt reply. I am integrating the audio effect at the platform level (frameworks/av/media/libeffects). I don’t need an apk to test it. I just use the built in player to playback an MP4 with 5.1aac audio and it will be routed through the effects pipeline. What I am seeing now is that the attached audio effect is receiving 2 channels of pcm audio instead of the 5.1 pcm audio decided from aac.

Is there a way for my audio effect to receive the 5.1 pcm audio?

Thanks.