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

Commit 56356203 authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Use enum track_state consistently

Change-Id: Ie5ebb7befa092e1de1e4df9c6e2d51e6bcfd176a
parent caaac348
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3549,7 +3549,7 @@ status_t AudioFlinger::PlaybackThread::Track::start()
    sp<ThreadBase> thread = mThread.promote();
    if (thread != 0) {
        Mutex::Autolock _l(thread->mLock);
        int state = mState;
        track_state state = mState;
        // here the track could be either new, or restarted
        // in both cases "unstop" the track
        if (mState == PAUSED) {
@@ -3590,7 +3590,7 @@ void AudioFlinger::PlaybackThread::Track::stop()
    sp<ThreadBase> thread = mThread.promote();
    if (thread != 0) {
        Mutex::Autolock _l(thread->mLock);
        int state = mState;
        track_state state = mState;
        if (mState > STOPPED) {
            mState = STOPPED;
            // If the track is not active (PAUSED and buffers full), flush buffers
+1 −1
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ private:
            void*               mBufferEnd;
            uint32_t            mFrameCount;
            // we don't really need a lock for these
            int                 mState;
            track_state         mState;
            int                 mClientTid;
            audio_format_t      mFormat;
            uint32_t            mFlags;