Skip to content

Commit

Permalink
解决comment
Browse files Browse the repository at this point in the history
  • Loading branch information
park671 committed May 18, 2023
1 parent 7069622 commit 52e6fc6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions app/src/main/cpp/bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,6 @@ jboolean nativeCharToJavaBmp(JNIEnv *env, jclass clazz, jobject bitmap, jstring
return true;
}

void getAudioBufferJNI(JNIEnv *env, jclass clazz, jshortArray array) {
short *buffer = getAudioBuffer();
if(buffer != nullptr) {
env->SetShortArrayRegion(array, 0, 1024, buffer);
}
}

void slInit(JNIEnv *env, jclass clazz) {
initSL();
}
Expand All @@ -73,7 +66,6 @@ static JNINativeMethod methods[] = {
{"commonTest", "()V", (void *) &commonTest},
{"onKeyEvent", "(I)V", (void *) &onKeyEvent},
{"onFuncKeyEvent", "(I)V", (void *) &onFuncKeyEvent},
{"getAudioBuffer", "([S)V", (void *) &getAudioBufferJNI},
{"slInit", "()V", (void *) &slInit},
{"slRelease", "()V", (void *) &slRelease},
{"initNativeWindow", "(Landroid/view/Surface;)V", (void *) &initNativeWindow},
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/com/park/metalmax/NativeBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ public static Bitmap getPxImg(String text) {
public static native void slInit();
@FastNative
public static native void slRelease();

@FastNative
public static native void getAudioBuffer(short[] buffer);

@FastNative
public static native boolean getCharImg(Bitmap bitmap, String text);

Expand Down

0 comments on commit 52e6fc6

Please sign in to comment.