Lines Matching refs:activeTrack
8284 sp<IAfRecordTrack> activeTrack; in threadLoop() local
8335 if (activeTrack) { // ensure track release is outside lock. in threadLoop()
8336 oldActiveTracks.emplace_back(std::move(activeTrack)); in threadLoop()
8338 activeTrack = mActiveTracks[i]; in threadLoop()
8339 if (activeTrack->isTerminated()) { in threadLoop()
8340 if (activeTrack->isFastTrack()) { in threadLoop()
8342 fastTrackToRemove = activeTrack; in threadLoop()
8344 removeTrack_l(activeTrack); in threadLoop()
8345 mActiveTracks.remove(activeTrack); in threadLoop()
8350 IAfTrackBase::track_state activeTrackState = activeTrack->state(); in threadLoop()
8354 mActiveTracks.remove(activeTrack); in threadLoop()
8355 activeTrack->setState(IAfTrackBase::PAUSED); in threadLoop()
8356 if (activeTrack->isFastTrack()) { in threadLoop()
8360 fastTrackToRemove = activeTrack; in threadLoop()
8379 activeTrack->setState(IAfTrackBase::ACTIVE); in threadLoop()
8392 __func__, activeTrackState, activeTrack->id(), size); in threadLoop()
8395 if (activeTrack->isFastTrack()) { in threadLoop()
8404 if (activeTrack->isSilenced()) { in threadLoop()
8418 activeTrack->invalidate(); in threadLoop()
8420 fastTrackToRemove = activeTrack; in threadLoop()
8421 removeTrack_l(activeTrack); in threadLoop()
8422 mActiveTracks.remove(activeTrack); in threadLoop()
8426 fastTrack = activeTrack; in threadLoop()
8429 activeTracks.add(activeTrack); in threadLoop()
8673 activeTrack = activeTracks[i]; in threadLoop()
8676 if (activeTrack->isFastTrack()) { in threadLoop()
8692 activeTrack->sinkBuffer().frameCount = ~0; in threadLoop()
8693 status_t status = activeTrack->getNextBuffer(&activeTrack->sinkBuffer()); in threadLoop()
8694 size_t framesOut = activeTrack->sinkBuffer().frameCount; in threadLoop()
8701 activeTrack->resamplerBufferProvider()->sync(&framesIn, &hasOverrun); in threadLoop()
8713 if (audio_is_linear_pcm(activeTrack->format())) { in threadLoop()
8716 framesIn, mSampleRate, activeTrack->sampleRate())); in threadLoop()
8719 if (activeTrack->isDirect()) { in threadLoop()
8725 activeTrack->resamplerBufferProvider()->getNextBuffer(&buffer); in threadLoop()
8731 memcpy(activeTrack->sinkBuffer().raw, in threadLoop()
8733 activeTrack->resamplerBufferProvider()->releaseBuffer(&buffer); in threadLoop()
8742 framesOut = activeTrack->recordBufferConverter()->convert( in threadLoop()
8743 activeTrack->sinkBuffer().raw, in threadLoop()
8744 activeTrack->resamplerBufferProvider(), in threadLoop()
8754 activeTrack->synchronizedRecordState().updateRecordFrames(framesOut); in threadLoop()
8758 activeTrack->sinkBuffer().frameCount = framesOut; in threadLoop()
8761 if (activeTrack->isSilenced()) { in threadLoop()
8762 memset(activeTrack->sinkBuffer().raw, in threadLoop()
8763 0, framesOut * activeTrack->frameSize()); in threadLoop()
8765 activeTrack->releaseBuffer(&activeTrack->sinkBuffer()); in threadLoop()
8776 if (!activeTrack->setOverflow()) { in threadLoop()
8786 activeTrack->clearOverflow(); in threadLoop()
8793 activeTrack->updateTrackFrameInfo( in threadLoop()
8794 activeTrack->serverProxy()->framesReleased(), in threadLoop()