How to use Android audio with low latency

。_饼干妹妹 提交于 2019-12-03 08:19:41

android 4.1+ has low latency audio api which should give you below 10ms latency. however the value varies by hardware (welcome to rich diverse world of android).

also feature descriptor of "android.hardware.audio.low_latency" can be used for filter out devices lacking low latency support.

check out http://www.youtube.com/watch?v=Yc8YrVc47TI&feature=player_de%20tailpage#t=1366s

and this: http://createdigitalmusic.com/2012/07/android-high-performance-audio-in-4-1-and-what-it-means-plus-libpd-goodness-today/

There is currently no way to get low latency audio on Android devices without modifying the operating system, and even then a lot of the latency can come from the hardware implementation, so the software can't fix that. This is sad since the Linux kernel is very capable of <5ms audio latency, and much ARM hardware is capable of decent latency. I had a custom Linux build running on an old Palm TX and that actually had pretty decent latency.

as follow up the feature of android.hardware.audio.pro starting in Android 6 promises <20ms round trip times, which we can hope to mean <10ms one-way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!