Lines Matching refs:mAudioTrack

118     mAudioTrack = new AudioTrack();  in open()
120 mAudioTrack->setOutputDevice(getDeviceId()); in open()
122 mAudioTrack->set( in open()
139 status_t status = mAudioTrack->initCheck(); in open()
147 init(mAudioTrack.get(), PLAYER_TYPE_AAUDIO, AUDIO_USAGE_MEDIA); in open()
150 setSamplesPerFrame(mAudioTrack->channelCount()); in open()
152 AAudioConvert_androidToAAudioDataFormat(mAudioTrack->format()); in open()
155 int32_t actualSampleRate = mAudioTrack->getSampleRate(); in open()
171 setDeviceId(mAudioTrack->getRoutedDeviceId()); in open()
172 mAudioTrack->addAudioDeviceCallback(mDeviceCallback); in open()
176 audio_output_flags_t actualFlags = mAudioTrack->getFlags(); in open()
229 if (mAudioTrack.get() == nullptr) { in requestStart()
233 status_t err = mAudioTrack->getPosition(&mPositionWhenStarting); in requestStart()
252 if (mAudioTrack.get() == nullptr) { in requestPause()
263 status_t err = mAudioTrack->getPosition(&mPositionWhenPausing); in requestPause()
273 if (mAudioTrack.get() == nullptr) { in requestFlush()
280 mAudioTrack->flush(); in requestFlush()
288 if (mAudioTrack.get() == nullptr) { in requestStop()
306 if (mAudioTrack->hasStarted()) { in updateStateWhileWaiting()
311 if (mAudioTrack->stopped()) { in updateStateWhileWaiting()
312 err = mAudioTrack->getPosition(&position); in updateStateWhileWaiting()
324 err = mAudioTrack->getPosition(&position); in updateStateWhileWaiting()
334 if (mAudioTrack->stopped()) { in updateStateWhileWaiting()
361 ssize_t bytesWritten = mAudioTrack->write(buffer, numBytes, blocking); in write()
381 ssize_t result = mAudioTrack->setBufferSizeInFrames(requestedFrames); in setBufferSize()
391 return static_cast<int32_t>(mAudioTrack->getBufferSizeInFrames()); in getBufferSize()
396 return static_cast<int32_t>(mAudioTrack->frameCount()); in getBufferCapacity()
401 return static_cast<int32_t>(mAudioTrack->getUnderrunCount()); in getXRunCount()
406 return static_cast<int32_t>(mAudioTrack->getNotificationPeriodInFrames()); in getFramesPerBurst()
418 result = mAudioTrack->getPosition(&position); in getFramesRead()
433 status_t status = mAudioTrack->getTimestamp(&extendedTimestamp); in getTimestamp()