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

Commit 8b517abe authored by Andy Hung's avatar Andy Hung Committed by Automerger Merge Worker
Browse files

Merge "Support AudioRecord getMinBufferSize for compressed formats" into main am: 62c2583f

parents 73e37055 62c2583f
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(