atsushieno / aap-core

an Audio Plugin Format/Framework for Android
MIT License
90 stars 3 forks source link

avoid fallback to AudioTrack in androidaudioplugin-manager #200

Closed atsushieno closed 2 months ago

atsushieno commented 4 months ago

It is consolidated from #199: something in aap::PluginPlayer (in androidaudioplugin-manager.aar) seems to prevent low latency AAudio callback once the player is paused and resumed. Copypasting Perfetto screenshot from the issue:

image

There were two "playing" states within the profiling. The first with AAudio, the second with AudioTrack. The latter should not happen.

Interestingly, there was no warnings when falling back to AudioTrack on adb log.