Hi,
I ran some tests via ADB and I'm wondering if there's anything I need to do after I run the audioflinger command? I can't quite make out the results as there is so much information.
I've searched the results based on one of your previous posts and have screen captures of what I've found but I just want to be sure I'm not missing something to make it easier.
It's a log file, so they're not spelling is out for us. Basically just capture the output by typing adb shell dumpsys media.audio_flinger >audio_flinger.txt during playback, then find the last Output thread in that dump file (audio_flinger.txt). Compare it to the one I included in this post, looking at the bolded words.
In particular, you want the Output thread type to be (DIRECT) not (MIXER), and you want the Sample rate and HAL format to be the same as the source (except in UAPP's case, it converts 16-bit to 24-bit, since otherwise it WILL go through the mixer). You also want to see (AUDIO_OUTPUT_FLAG_DIRECT) and the flag offloadable. Again, these are all bolded in my post.
When playing Bluetooth, it gets more complicated, as it will always use the Mixer, and you have to look at the input tracks. Also, there will be multiple Mixer Output threads, as it first resamples, then converts to the BT codec, and finally duplicates it to the BT device. We'll save that for some other day