diff options
author | Glenn Kasten <gkasten@google.com> | 2015-03-23 18:29:32 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-03-23 18:29:33 +0000 |
commit | d1e85c354bf08cbf7fb7619f91bda1c416b40627 (patch) | |
tree | 6ba9419f727ac171f956120f225cad153c1245f5 /include | |
parent | 17fe26e5b500671ca0773b57b77fa63b113aadae (diff) | |
parent | d8772b24079b61018b455e602f3030284c30c7f5 (diff) | |
download | frameworks_av-d1e85c354bf08cbf7fb7619f91bda1c416b40627.zip frameworks_av-d1e85c354bf08cbf7fb7619f91bda1c416b40627.tar.gz frameworks_av-d1e85c354bf08cbf7fb7619f91bda1c416b40627.tar.bz2 |
Merge "Update AudioRecord comments to match AudioTrack"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioRecord.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/media/AudioRecord.h b/include/media/AudioRecord.h index 5fd055c..c503f25 100644 --- a/include/media/AudioRecord.h +++ b/include/media/AudioRecord.h @@ -386,8 +386,14 @@ private: struct timespec *elapsed = NULL, size_t *nonContig = NULL); public: - /* Release an emptied buffer of "audioBuffer->frameCount" frames for AudioFlinger to re-fill. */ - // FIXME make private when obtainBuffer() for TRANSFER_OBTAIN is removed + /* Public API for TRANSFER_OBTAIN mode. + * Release an emptied buffer of "audioBuffer->frameCount" frames for AudioFlinger to re-fill. + * + * Buffer fields: + * frameCount currently ignored but recommend to set to actual number of frames consumed + * size actual number of bytes consumed, must be multiple of frameSize + * raw ignored + */ void releaseBuffer(const Buffer* audioBuffer); /* As a convenience we provide a read() interface to the audio buffer. |