* Audio helpers */
| 465 | * Audio helpers |
| 466 | */ |
| 467 | int32_t JNIHelper::GetNativeAudioBufferSize() { |
| 468 | if (activity_ == NULL) { |
| 469 | LOGI( |
| 470 | "JNIHelper has not been initialized. Call init() to initialize the " |
| 471 | "helper"); |
| 472 | return 0; |
| 473 | } |
| 474 | |
| 475 | JNIEnv* env = AttachCurrentThread(); |
| 476 | jmethodID mid = env->GetMethodID(jni_helper_java_class_, |
| 477 | "getNativeAudioBufferSize", "()I"); |
| 478 | int32_t i = env->CallIntMethod(jni_helper_java_ref_, mid); |
| 479 | return i; |
| 480 | } |
| 481 | |
| 482 | int32_t JNIHelper::GetNativeAudioSampleRate() { |
| 483 | if (activity_ == NULL) { |
nothing calls this directly
no test coverage detected