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

Want create site? Find Free WordPress Themes and plugins.

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.

Single API

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.

Diagram showing the underlying audio API which Oboe will use

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);

Different advantages

  • 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)

Getting began

Check out the brief video introduction:

Try the documentation, code samples and API reference. There’s even a codelab which reveals you the right way to construct a rhythm-based recreation.

You probably have any points, please file them here, we might love to listen to the way you get on.

Source link

Did you find apk for android? You can find new Free Android Games and apps.

Leave a Reply

Your email address will not be published. Required fields are marked *