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

Commit 437cd78a authored by Andy Hung's avatar Andy Hung Committed by android-build-merger
Browse files

Merge "Add AudioRecord timestamps" into nyc-dev

am: 4fdeed95

* commit '4fdeed95':
  Add AudioRecord timestamps
parents a63cca0b 4fdeed95
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -693,11 +693,8 @@ static jint android_media_AudioRecord_get_timestamp(JNIEnv *env, jobject thiz,
        return (jint)AUDIO_JAVA_ERROR;
    }

    // TODO Enable.
#if 0
    // get the record timestamp
    ExtendedTimestamp ts;
    jint status = nativeToJavaStatus(lpRecorder->getExtendedTimestamp(&ts));
    jint status = nativeToJavaStatus(lpRecorder->getTimestamp(&ts));

    if (status == AUDIO_JAVA_SUCCESS) {
        // set the data
@@ -712,9 +709,6 @@ static jint android_media_AudioRecord_get_timestamp(JNIEnv *env, jobject thiz,
        }
    }
    return status;
#else
    return (jint)AUDIO_JAVA_INVALID_OPERATION;
#endif
}

// ----------------------------------------------------------------------------