Home
last modified time | relevance | path

Searched refs:afSampleRate (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libmedia/
DAudioTrack.cpp69 uint32_t afSampleRate; in getMinFrameCount() local
71 status = AudioSystem::getOutputSamplingRate(&afSampleRate, streamType); in getMinFrameCount()
93 uint32_t minBufCount = afLatency / ((1000 * afFrameCount) / afSampleRate); in getMinFrameCount()
99 afFrameCount * minBufCount * uint64_t(sampleRate) / afSampleRate; in getMinFrameCount()
108 *frameCount, afFrameCount, minBufCount, afSampleRate, afLatency); in getMinFrameCount()
958 uint32_t afSampleRate; in createTrack_l() local
959 status = AudioSystem::getSamplingRate(output, &afSampleRate); in createTrack_l()
974 (mSampleRate == afSampleRate))) { in createTrack_l()
988 const uint32_t nBuffering = (mSampleRate == afSampleRate) ? 2 : 3; in createTrack_l()
1035 uint32_t minBufCount = afLatency / ((1000 * afFrameCount)/afSampleRate); in createTrack_l()
[all …]
DSoundPool.cpp582 uint32_t afSampleRate; in play() local
587 if (AudioSystem::getOutputSamplingRate(&afSampleRate, streamType) != NO_ERROR) { in play()
588 afSampleRate = kDefaultSampleRate; in play()
592 uint32_t totalFrames = (kDefaultBufferCount * afFrameCount * sampleRate) / afSampleRate; in play()
DAudioRecord.cpp421 uint32_t afSampleRate = AudioSystem::getPrimaryOutputSamplingRate(); in openRecord_l() local
422 if (afSampleRate == 0) { in openRecord_l()
431 (mSampleRate == afSampleRate))) { in openRecord_l()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp1574 uint32_t afSampleRate; in open() local
1588 uint32_t afSampleRate; in open() local
1594 if (AudioSystem::getOutputSamplingRate(&afSampleRate, mStreamType) != NO_ERROR) { in open()
1598 frameCount = (sampleRate*afFrameCount*bufferCount)/afSampleRate; in open()