0
0

Hi there,

I’ve been looking at documentation, examples, forum – and haven’t seen any word on using OpenSL instead of Java audio track. Please correct me if I’m wrong, but I thought Java audio track is deprecated, and starting from Android 2.3 OpenSL is the preferred output method… :roll:
But I can’t find a single example with OpenSL. The first and obvious question is why? Is there any benefit of using native implementation?
The second question is – what is the process of switching from Audiotrack to OpenSL? Implement start() and stop(), or anything else?

Thank you!
Yury

  • You must to post comments
0
0

By default FMOD will use OpenSL if it’s available, otherwise it will fall back to AudioTrack.

You can force FMOD to use AudioTrack all the time if you prefer via System::setOutput(FMOD_PUTPUTTYPE_AUDIOTRACK) before System::init. Sometimes this is a good idea due to AudioTrack currently having lower latency.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.