Lines Matching refs:recordTrack
6399 status_t AudioFlinger::RecordThread::start(RecordThread::RecordTrack* recordTrack, in start() argument
6408 recordTrack->clearSyncStartEvent(); in start()
6410 recordTrack->mSyncStartEvent = mAudioFlinger->createSyncEvent(event, in start()
6412 recordTrack->sessionId(), in start()
6414 recordTrack); in start()
6417 if (recordTrack->mSyncStartEvent->isCancelled()) { in start()
6418 recordTrack->clearSyncStartEvent(); in start()
6421 recordTrack->mFramesToDrop = - in start()
6422 ((AudioSystem::kSyncRecordStartTimeOutMs * recordTrack->mSampleRate) / 1000); in start()
6429 if (mActiveTracks.indexOf(recordTrack) >= 0) { in start()
6430 if (recordTrack->mState == TrackBase::PAUSING) { in start()
6432 recordTrack->mState = TrackBase::ACTIVE; in start()
6434 ALOGV("active record track state %d", recordTrack->mState); in start()
6442 recordTrack->mState = TrackBase::STARTING_1; in start()
6443 mActiveTracks.add(recordTrack); in start()
6446 if (recordTrack->isExternalTrack()) { in start()
6448 status = AudioSystem::startInput(mId, recordTrack->sessionId()); in start()
6452 mActiveTracks.remove(recordTrack); in start()
6454 recordTrack->clearSyncStartEvent(); in start()
6464 recordTrack->mResamplerBufferProvider->reset(); in start()
6466 recordTrack->mRecordBufferConverter->reset(); in start()
6467 recordTrack->mState = TrackBase::STARTING_2; in start()
6470 if (mActiveTracks.indexOf(recordTrack) < 0) { in start()
6479 if (recordTrack->isExternalTrack()) { in start()
6480 AudioSystem::stopInput(mId, recordTrack->sessionId()); in start()
6482 recordTrack->clearSyncStartEvent(); in start()
6494 RecordTrack *recordTrack = (RecordTrack *)ptr.get(); in syncStartEventCallback() local
6495 recordTrack->handleSyncStartEvent(strongEvent); in syncStartEventCallback()
6500 bool AudioFlinger::RecordThread::stop(RecordThread::RecordTrack* recordTrack) { in stop() argument
6503 if (mActiveTracks.indexOf(recordTrack) != 0 || recordTrack->mState == TrackBase::PAUSING) { in stop()
6507 recordTrack->mState = TrackBase::PAUSING; in stop()
6515 if (exitPending() || mActiveTracks.indexOf(recordTrack) != 0) { in stop()