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

Commit 3118ca9b authored by Glenn Kasten's avatar Glenn Kasten
Browse files

AudioTrack constructor/set parameter frameCount is size_t

Change-Id: Ie92ab0433531b3852747a81d2bfce9625644a2ae
parent 94b5ca81
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) {