3 ms·
>Android does not have a functioning audio API. I work on an app which relies on fairly low latency real-time audio (triggered by a MIDI keyboard) on both iOS
by tomduncalf 6y ago
>Android does not have a functioning audio API.
I work on an app which relies on fairly low latency real-time audio (triggered by a MIDI keyboard) on both iOS and Android and have had more than my fair share of headaches with Android audio, but have to say that the Oboe audio API in the newer versions of Android has made things quite a lot better. We use JUCE as an abstraction layer over the audio APIs.
> And really doesn't have the ability to mark threads as real-time that will stick.
Yeah, we found this is the cause of a lot of real-time audio issues on Android. If you use systrace you can see that your audio thread is hopping from core to core. We get around this by manually setting the affinity of the audio thread to a certain core (working out which core to use requires some guess work sadly, there's meant to be a way to ask for the "best" core but it doesn't really seem to work).