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

Commit c63662a2 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 38138bb1: am 645e4397: Merge "AudioTrack: fix position callback after restore"

* commit '38138bb1':
  AudioTrack: fix position callback after restore
parents 9c1969c8 38138bb1
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1691,7 +1691,6 @@ status_t AudioTrack::restoreTrack_l(const char *from)

    // take the frames that will be lost by track recreation into account in saved position
    size_t position = mProxy->getPosition() + mProxy->getFramesFilled();
    mNewPosition = position + mUpdatePeriod;
    size_t bufferPosition = mStaticProxy != NULL ? mStaticProxy->getBufferPosition() : 0;
    result = createTrack_l(mStreamType,
                           mSampleRate,