Lines Matching refs:mTrack
546 mMsecsPerFrame, (mTrack != 0) ? mTrack->latency() : -1); in dump()
553 if (mTrack != 0) { in dump()
554 mTrack->dump(fd, args); in dump()
1884 if (mTrack == 0) return NO_INIT; in bufferSize()
1885 return mTrack->frameCount() * mFrameSize; in bufferSize()
1891 if (mTrack == 0) return NO_INIT; in frameCount()
1892 return mTrack->frameCount(); in frameCount()
1898 if (mTrack == 0) return NO_INIT; in channelCount()
1899 return mTrack->channelCount(); in channelCount()
1905 if (mTrack == 0) return NO_INIT; in frameSize()
1912 if (mTrack == 0) return 0; in latency()
1913 return mTrack->latency(); in latency()
1925 if (mTrack == 0) return NO_INIT; in getPosition()
1926 return mTrack->getPosition(position); in getPosition()
1932 if (mTrack == 0) return NO_INIT; in getTimestamp()
1933 return mTrack->getTimestamp(ts); in getTimestamp()
1947 if (mTrack == 0 || mSampleRateHz == 0) { in getPlayedOutDurationUs()
1955 status_t res = mTrack->getTimestamp(ts); in getPlayedOutDurationUs()
1966 res = mTrack->getPosition(&numFramesPlayed); in getPlayedOutDurationUs()
1969 numFramesPlayedAtUs += 1000LL * mTrack->latency() / 2; /* XXX */ in getPlayedOutDurationUs()
1997 if (mTrack == 0) return NO_INIT; in getFramesWritten()
1999 status_t status = mTrack->getTimestamp(&ets); in getFramesWritten()
2009 if (mTrack == 0) return NO_INIT; in setParameters()
2010 return mTrack->setParameters(keyValuePairs); in setParameters()
2016 if (mTrack == 0) return String8(); in getParameters()
2017 return mTrack->getParameters(keys); in getParameters()
2082 mTrack.clear(); in close_l()
2287 mTrack = mRecycledTrack; in open()
2334 mTrack = t; in open()
2340 if (mTrack == NULL) { in updateTrack()
2347 if ((mTrack->getFlags() in updateTrack()
2349 res = mTrack->setPlaybackRate(mPlaybackRate); in updateTrack()
2351 mTrack->setAuxEffectSendLevel(mSendLevel); in updateTrack()
2352 res = mTrack->attachAuxEffect(mAuxEffectId); in updateTrack()
2355 mTrack->setOutputDevice(mSelectedDeviceId); in updateTrack()
2357 mTrack->addAudioDeviceCallback(mDeviceCallback.promote()); in updateTrack()
2370 if (mTrack != 0) { in start()
2371 mTrack->setVolume(mLeftVolume, mRightVolume); in start()
2372 mTrack->setAuxEffectSendLevel(mSendLevel); in start()
2373 status_t status = mTrack->start(); in start()
2388 if (mTrack != nullptr) { in setPlayerIId()
2389 mTrack->setPlayerIId(mCachedPlayerIId); in setPlayerIId()
2405 if (mTrack == 0) { in switchToNextOutput()
2449 if (mNextOutput->mTrack == nullptr) { in switchToNextOutput()
2452 mNextOutput->mRecycledTrack = mTrack; in switchToNextOutput()
2478 if (mTrack != 0) { in write()
2479 return mTrack->write(buffer, size, blocking); in write()
2488 if (mTrack != 0) mTrack->stop(); in stop()
2495 if (mTrack != 0) mTrack->flush(); in flush()
2507 if (mTrack != 0) mTrack->pauseAndWait(TIMEOUT_MS); in pause()
2516 track = mTrack; in close()
2528 if (mTrack != 0) { in setVolume()
2529 mTrack->setVolume(left, right); in setVolume()
2538 if (mTrack == 0) { in setPlaybackRate()
2543 status_t res = mTrack->setPlaybackRate(rate); in setPlaybackRate()
2560 if (mTrack == 0) { in getPlaybackRate()
2563 *rate = mTrack->getPlaybackRate(); in getPlaybackRate()
2572 if (mTrack != 0) { in setAuxEffectSendLevel()
2573 return mTrack->setAuxEffectSendLevel(level); in setAuxEffectSendLevel()
2583 if (mTrack != 0) { in attachAuxEffect()
2584 return mTrack->attachAuxEffect(effectId); in attachAuxEffect()
2594 if (mTrack != 0) { in setOutputDevice()
2595 return mTrack->setOutputDevice(deviceId); in setOutputDevice()
2604 if (mTrack != 0) { in getRoutedDeviceId()
2605 mRoutedDeviceId = mTrack->getRoutedDeviceId(); in getRoutedDeviceId()
2616 if (mTrack != 0) { in enableAudioDeviceCallback()
2619 status = mTrack->addAudioDeviceCallback(mDeviceCallback.promote()); in enableAudioDeviceCallback()
2621 status = mTrack->removeAudioDeviceCallback(mDeviceCallback.promote()); in enableAudioDeviceCallback()
2648 if (mTrack != 0) { in applyVolumeShaper()
2649 status = mTrack->applyVolumeShaper(configuration, operation); in applyVolumeShaper()
2652 if (mTrack->isPlaying()) { // match local AudioTrack to properly restore. in applyVolumeShaper()
2677 track = mNextOutput->mTrack; in applyVolumeShaper()
2692 if (mTrack != 0) { in getVolumeShaperState()
2693 return mTrack->getVolumeShaperState(id); in getVolumeShaperState()
2775 if (mTrack == 0) return 0; in getSampleRate()
2776 return mTrack->getSampleRate(); in getSampleRate()
2782 if (mTrack == 0) { in getBufferDurationInUs()
2786 if (mTrack->getBufferDurationInUs(&duration) != OK) { in getBufferDurationInUs()