Home
last modified time | relevance | path

Searched refs:updatePeriod (Results 1 – 6 of 6) sorted by relevance

/frameworks/av/media/libaudioclient/
DAudioRecord.cpp511 status_t AudioRecord::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
519 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
520 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
529 status_t AudioRecord::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
531 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
536 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1127 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1129 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1130 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1131 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
DAudioTrack.cpp1149 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
1157 mNewPosition = updateAndGetPosition_l() + updatePeriod; in setPositionUpdatePeriod()
1158 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
1167 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
1172 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
1177 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1935 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1937 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1938 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1939 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h336 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
337 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
DAudioTrack.h542 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
543 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
/frameworks/base/media/java/android/media/
DAudioRecord.java1957 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument
DAudioTrack.java3648 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument