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

Commit ab85a35c authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Move initialization of mRefreshRemaining to match AudioTrack"

parents 9d798344 a5ed48d3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -256,7 +256,6 @@ status_t AudioRecord::set(

    mActive = false;
    mCbf = cbf;
    mRefreshRemaining = true;
    mUserData = user;
    // TODO: add audio hardware input latency here
    mLatency = (1000*mFrameCount) / sampleRate;
@@ -538,6 +537,8 @@ status_t AudioRecord::openRecord_l(size_t epoch)
        }
    }

    mRefreshRemaining = true;

    // starting address of buffers in shared memory
    void *buffers = (char*)cblk + sizeof(audio_track_cblk_t);