Skip to content

Using Oboe with Kotlin #1418

Answered by android-usb
Ateros4me asked this question in Q&A
Oct 16, 2021 · 4 comments · 10 replies
Discussion options

You must be logged in to vote

The whole point of Oboe is to provide a high-performance C++ audio API, particularly getting all of the audio processing the C/C++ layer. Wrapping in it a Java/Kotlin layer would eliminate this benefit (i.e. it would become a Java/Kotlin API).

If the Java AudioTrack API is sufficient for your purposes then you should use that. Since I perceive you want high performance (for real-time audio processing), you want to be working in the C/C++ layer.

The recommended way to use Oboe in an application is to write just the UI layer in Java/Kotlin and have all of the audio processing in C/C++. It is certainly the case that you need to know how to write JNI (Java Native Interface) code, but that is …

Replies: 4 comments 10 replies

Comment options

You must be logged in to vote
3 replies
@Ateros4me
Comment options

@Ateros4me
Comment options

@dturner
Comment options

Comment options

You must be logged in to vote
5 replies
@Ateros4me
Comment options

@Ateros4me
Comment options

@Ateros4me
Comment options

@dturner
Comment options

@Ateros4me
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by android-usb
Comment options

You must be logged in to vote
2 replies
@dturner
Comment options

@Ateros4me
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants