[solved] Oboe on Android

original questions

How do you use Oboe in juce?

Is it a device?

Does anyone have some starter code to get it going that they could share?

Answer, it’s a device type. Having it as the only enable device type ensures it’s the default. When it’s not the only one can be switched.

I spoke about this at ADC last year:

1 Like

Hi @Don_Turner

I watched your video - I’m excited to be using Oboe with Juce and it helps me understand a little more

You showed some intersting stuff about the latenecy tuning, but I didn’t really get how that would be done in a Juce environment

There was the section where you skimmed over some compile options which remove some artefacts etc, can you elaborate on those or link to the options?

thanks

Sure. I wrote an article about it here: https://medium.com/@donturner/debugging-audio-glitches-on-android-ed10782f9c64

Skip down to the bit about compiler optimisations.

1 Like

Hi Don,

thanks for the link to the article.

In the solution, you say add set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Ofast") to the CMakeLists.txt file, but in building this for Android with Juce I have two files, one for my project and one for Oboe, which one should I use?

Use the one for your project. Oboe has its own settings (although you’re welcome to mess with them if you like). Also, be aware that -Ofast can produce errors in maths functions so you might want to consider -O3 instead. See https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html (search for “-ffast-math”) for more.

1 Like