Loading media/libmedia/AudioRecord.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,12 @@ status_t AudioRecord::set( mStatus = NO_ERROR; mUserData = user; // TODO: add audio hardware input latency here mLatency = (1000 * mFrameCount) / mSampleRate; if (mTransfer == TRANSFER_CALLBACK || mTransfer == TRANSFER_SYNC) { mLatency = (1000 * mNotificationFramesAct) / sampleRate; } else { mLatency = (1000 * mFrameCount) / sampleRate; } mMarkerPosition = 0; mMarkerReached = false; mNewPosition = 0; Loading Loading
media/libmedia/AudioRecord.cpp +6 −1 Original line number Diff line number Diff line Loading @@ -272,7 +272,12 @@ status_t AudioRecord::set( mStatus = NO_ERROR; mUserData = user; // TODO: add audio hardware input latency here mLatency = (1000 * mFrameCount) / mSampleRate; if (mTransfer == TRANSFER_CALLBACK || mTransfer == TRANSFER_SYNC) { mLatency = (1000 * mNotificationFramesAct) / sampleRate; } else { mLatency = (1000 * mFrameCount) / sampleRate; } mMarkerPosition = 0; mMarkerReached = false; mNewPosition = 0; Loading