Home
last modified time | relevance | path

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

/frameworks/av/media/libmedia/
DAudioRecord.cpp378 status_t AudioRecord::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
385 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
386 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
391 status_t AudioRecord::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
393 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
398 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
755 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
757 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
758 newPosCount = ((position - newPosition) / updatePeriod) + 1; in processAudioBuffer()
759 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
DAudioTrack.cpp697 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
705 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
706 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
710 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
715 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
720 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1449 size_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1451 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1452 newPosCount = ((position - newPosition) / updatePeriod) + 1; in processAudioBuffer()
1453 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
/frameworks/av/include/media/
DAudioRecord.h271 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
272 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
DAudioTrack.h396 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
397 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
/frameworks/base/media/java/android/media/
DAudioRecord.java825 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument
DAudioTrack.java1355 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument