Oboe
More info
- Creator
- Released
- 2018
- Type
- C++ library
- License
- Apache 2.0
- Source
- github.com/google/oboe
Google's C++ library for low-latency audio on Android, which picks AAudio or OpenSL ES for you depending on what phone the app ends up running on.
AAudio fixed Android's latency problem when it arrived in Android 8 — on new phones. Everyone else was still on OpenSL ES, so an app that wanted to reach both had to write its audio layer twice. Google's answer in 2018 was Oboe: a thin C++ interface where you open a stream and receive callbacks, and the library decides which API sits underneath.
As valuable as the abstraction is the list of exceptions. Oboe ships workarounds for specific handsets and Android releases that report the wrong buffer size or crash in MMAP mode — knowledge every developer would otherwise have to rediscover the hard way. In practice it is what Google itself recommends instead of calling AAudio directly.