Postingan

Menampilkan postingan dengan label AAudio for Android

Introducing Oboe: A C++ library for low latency audio

Gambar
Posted by Don Turner, Developer Advocate, Android Audio Framework This week we released the first production-ready version of Oboe - a C++ library for building real-time audio apps. Oboe provides the lowest possible audio latency across the widest range of Android devices, as well as several other benefits. Single API Oboe takes advantage of the improved performance and features of AAudio on Oreo MR1 (API 27+) whilst maintaining backward compatibility (using OpenSL ES ) on API 16+. It's kind of like AndroidX for native audio . Less code to write and maintain Using Oboe you can create an audio stream in just 3 lines of code (vs 50+ lines in OpenSL ES): AudioStreamBuilder builder; AudioStream *stream = nullptr; Result result = builder.openStream(&stream); Other benefits Convenient C++ API (uses the C++11 standard) Fast release process: supplied as a source library, bug fixes can be rolled out in days, quite a bit faster than the Android platform release cycle Less guesswork: Pr...