| 480 | } |
| 481 | |
| 482 | int32_t JNIHelper::GetNativeAudioSampleRate() { |
| 483 | if (activity_ == NULL) { |
| 484 | LOGI( |
| 485 | "JNIHelper has not been initialized. Call init() to initialize the " |
| 486 | "helper"); |
| 487 | return 0; |
| 488 | } |
| 489 | |
| 490 | JNIEnv* env = AttachCurrentThread(); |
| 491 | jmethodID mid = env->GetMethodID(jni_helper_java_class_, |
| 492 | "getNativeAudioSampleRate", "()I"); |
| 493 | int32_t i = env->CallIntMethod(jni_helper_java_ref_, mid); |
| 494 | return i; |
| 495 | } |
| 496 | |
| 497 | //--------------------------------------------------------------------------- |
| 498 | // Misc implementations |
nothing calls this directly
no test coverage detected