feat: SAF file picker, fd to jni code
This commit is contained in:
@@ -40,4 +40,13 @@ Java_at_lockstep_pb_PlaybackEngine_native_1setDefaultStreamValues(JNIEnv *env,
|
||||
oboe::DefaultStreamValues::FramesPerBurst = (int32_t) framesPerBurst;
|
||||
}
|
||||
|
||||
JNIEXPORT void JNICALL
|
||||
Java_at_lockstep_pb_PlaybackEngine_native_1playMusic(JNIEnv *env,
|
||||
jclass type,
|
||||
jlong engineHandle,
|
||||
jint fd) {
|
||||
auto engine = reinterpret_cast<PlaybackEngine *>(engineHandle);
|
||||
engine->playMusic(fd);
|
||||
}
|
||||
|
||||
} // extern "C"
|
||||
|
||||
Reference in New Issue
Block a user