Audio Data Java/Kotlin C++ Interaction Questions #1375
-
Thank you very much to the Oboe team for opening up such a great project. I now have some questions that I need to ask. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
It is possible to send data in either direction between Java and Oboe.
Not exactly. If you are writing to the stream and not using a callback then the Java path might have lower latency. Rough comparison of output latency (varies by device) |
Beta Was this translation helpful? Give feedback.
-
so...we have to synthesis audio in the jni layer. right? |
Beta Was this translation helpful? Give feedback.
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.
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…