Posted by Don Turner, Developer Advocate, Android Audio Framework
This week we launched the primary production-ready model of Oboe – a C++ library for constructing real-time audio apps. Oboe gives the bottom attainable audio latency throughout the widest vary of Android gadgets, in addition to a number of different advantages.
Oboe takes benefit of the improved efficiency and options of AAudio on Oreo MR1 (API 27+) while sustaining backward compatibility (utilizing OpenSL ES) on API 16+. It is type of like AndroidX for native audio.
Much less code to put in writing and keep
Utilizing Oboe you may create an audio stream in simply three traces of code (vs 50+ traces in OpenSL ES):
AudioStreamBuilder builder; AudioStream *stream = nullptr; Consequence consequence = builder.openStream(&stream);
- Handy C++ API (makes use of the C++11 commonplace)
- Quick launch course of: equipped as a supply library, bug fixes could be rolled out in days, fairly a bit quicker than the Android platform launch cycle
- Much less guesswork: Gives workarounds for recognized audio bugs and has smart default behaviour for stream properties, corresponding to pattern fee and audio knowledge codecs
- Open supply and maintained by Google engineers (though we welcome outdoors contributions)
Check out the brief video introduction:
You probably have any points, please file them here, we might love to listen to the way you get on.