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

Commit 5aab9254 authored by Phil Burk's avatar Phil Burk Committed by Eric Laurent
Browse files

AudioTrack: fix build



Using format %llu did not work for uint64_t on 64-bit systems!

Change-Id: I727094e460141b9da3e433ceaa95e069dad948bc
Signed-off-by: default avatarPhil Burk <philburk@google.com>
parent 457e8258
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -2217,12 +2217,10 @@ status_t AudioTrack::getTimestamp(AudioTimestamp& timestamp)
            // position can bobble slightly as an artifact; this hides the bobble
            static const int32_t MINIMUM_POSITION_DELTA = 8;
            ALOGW_IF(deltaPosition < 0,
                    "retrograde timestamp position corrected, %d = %u - %u, (at %llu, %llu nanos)",
                    "retrograde timestamp position corrected, %d = %u - %u",
                    deltaPosition,
                    timestamp.mPosition,
                    mPreviousTimestamp.mPosition,
                    currentTimeNanos,
                    previousTimeNanos);
                    mPreviousTimestamp.mPosition);
            if (deltaPosition < MINIMUM_POSITION_DELTA) {
                timestamp = mPreviousTimestamp;  // Use last valid timestamp.
            }