Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 62c2583f authored by Andy Hung's avatar Andy Hung Committed by Gerrit Code Review
Browse files

Merge "Support AudioRecord getMinBufferSize for compressed formats" into main

parents 6fdef471 287ac573
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -574,7 +574,7 @@ static jint android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject th
    if (result != NO_ERROR) {
        return -1;
    }
    return frameCount * channelCount * audio_bytes_per_sample(format);
    return frameCount * audio_bytes_per_frame(channelCount, format);
}

static jboolean android_media_AudioRecord_setInputDevice(