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

Commit 1489b09b authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "AudioTrack constructor/set parameter frameCount is size_t"

parents 317f5119 3118ca9b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -263,7 +263,7 @@ android_media_AudioTrack_setup(JNIEnv *env, jobject thiz, jobject weak_this,

    // compute the frame count
    const size_t bytesPerSample = audio_bytes_per_sample(format);
    int frameCount = buffSizeInBytes / (nbChannels * bytesPerSample);
    size_t frameCount = buffSizeInBytes / (nbChannels * bytesPerSample);

    jclass clazz = env->GetObjectClass(thiz);
    if (clazz == NULL) {