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

Commit 79e6a53b authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Enlarge the width of AudioTimestampInternal.position"

parents 2342e7af c5f378e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -528,7 +528,7 @@ aidl2legacy_AudioTimestampInternal_AudioTimestamp(const media::AudioTimestampInt
ConversionResult<media::AudioTimestampInternal>
legacy2aidl_AudioTimestamp_AudioTimestampInternal(const AudioTimestamp& legacy) {
    media::AudioTimestampInternal aidl;
    aidl.position = VALUE_OR_RETURN(convertIntegral<int32_t>(legacy.mPosition));
    aidl.position = VALUE_OR_RETURN(convertIntegral<int64_t>(legacy.mPosition));
    aidl.sec = VALUE_OR_RETURN(convertIntegral<int64_t>(legacy.mTime.tv_sec));
    aidl.nsec = VALUE_OR_RETURN(convertIntegral<int32_t>(legacy.mTime.tv_nsec));
    return aidl;
+5 −2
Original line number Diff line number Diff line
@@ -22,8 +22,11 @@ package android.media;
 * {@hide}
 */
parcelable AudioTimestampInternal {
    /** A frame position in AudioTrack::getPosition() units. */
    int position;
    /**
     * A frame position in AudioTrack::getPosition() units. Use 'long' to accommodate
     * all values from 'uint32_t'.
     */
    long position;
    /** corresponding CLOCK_MONOTONIC when frame is expected to present. */
    long sec;
    int nsec;