Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioRecord.cpp549 status_t AudioRecord::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
557 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
558 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
567 status_t AudioRecord::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
569 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
574 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1197 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1199 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1200 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1201 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
DAudioTrack.cpp1238 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
1246 mNewPosition = updateAndGetPosition_l() + updatePeriod; in setPositionUpdatePeriod()
1247 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
1256 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
1261 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
1266 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
2075 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
2077 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
2078 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
2079 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h349 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
350 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
DAudioTrack.h558 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
559 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
/frameworks/base/media/java/android/media/
DAudioRecord.java2027 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument
DAudioTrack.java4115 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument