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

Commit 06e0333c authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Return the play stayed locked.

I believe the the synchronized block is required to allow
other threads to observe changes to mPlayState in a timely
manner.

Change-Id: I502b7401196c42932c9667ef73eb4cae16c3da16
parent 35be3dee
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -551,8 +551,10 @@ public class AudioTrack
     * @see #PLAYSTATE_PLAYING
     */
    public int getPlayState() {
        synchronized (mPlayStateLock) {
            return mPlayState;
        }
    }

    /**
     *  Returns the native frame count used by the hardware.