Skip to content

Audio Data Java/Kotlin C++ Interaction Questions #1375

Answered by philburk
lilinxiong asked this question in Q&A
Discussion options

You must be logged in to vote

It is possible to send data in either direction between Java and Oboe.
If you use a callback then you will probably want to use a FIFO between Java and the Oboe callback. Atomic FIFOs can be implemented using a ByteBuffer.
If you read or write to Oboe then you do that directly in a JNI call from Java.

I would like to ask, if I use the AudioTrack method in java, will I get the same stream as the Oboe low latency stream?

Not exactly. If you are writing to the stream and not using a callback then the Java path might have lower latency.
Oboe will not provide a LowLatency output stream for write() unless the device supports MMAP. On the Legacy path you will get a normal stream with higher la…

Replies: 2 comments 2 replies

Comment options

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

@jet-yangqs
Comment options

Answer selected by philburk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #1372 on August 06, 2021 17:05.