opensl

Redirecting audio / creating alternate sound paths in Android

大憨熊 提交于 2019-11-26 19:37:23
Does anyone have experience (using OpenSL ES, ALSA, etc.) with redirecting audio or creating new sound paths in Android? The end goal is to create a virtual microphone to replace the external microphone, where one can play audio files as if they were speaking into the microphone. Applications accessing the microphone with AudioSource.MIC should use this alternate stream. It's not necessary for it to work with voice calls, I believe achieving that sort of functionality is harder as it's all done within the radio. Any ideas on where to begin? I've done some research with OpenSL and ALSA, but it

Low-latency audio playback on Android

こ雲淡風輕ζ 提交于 2019-11-26 16:56:08
I'm currently attempting to minimize audio latency for a simple application: I have a video on a PC, and I'm transmitting the video's audio through RTP to a mobile client. With a very similar buffering algorithm, I can achieve 90ms of latency on iOS, but a dreadful ±180ms on Android. I'm guessing the difference stems from the well-known latency issues on Android. However, after reading around for a bit, I came upon this article , which states that: Low-latency audio is available since Android 4.1/4.2 in certain devices. Low-latency audio can be achieved using libpd, which is Pure Data library

Redirecting audio / creating alternate sound paths in Android

半世苍凉 提交于 2019-11-26 08:58:58
问题 Does anyone have experience (using OpenSL ES, ALSA, etc.) with redirecting audio or creating new sound paths in Android? The end goal is to create a virtual microphone to replace the external microphone, where one can play audio files as if they were speaking into the microphone. Applications accessing the microphone with AudioSource.MIC should use this alternate stream. It\'s not necessary for it to work with voice calls, I believe achieving that sort of functionality is harder as it\'s all

Low-latency audio playback on Android

旧城冷巷雨未停 提交于 2019-11-26 04:59:07
问题 I\'m currently attempting to minimize audio latency for a simple application: I have a video on a PC, and I\'m transmitting the video\'s audio through RTP to a mobile client. With a very similar buffering algorithm, I can achieve 90ms of latency on iOS, but a dreadful ±180ms on Android. I\'m guessing the difference stems from the well-known latency issues on Android. However, after reading around for a bit, I came upon this article, which states that: Low-latency audio is available since