diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-07 14:03:00 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-14 11:58:17 -0800 |
commit | 020f79fd967736d36c7ec860814e2e93866a020f (patch) | |
tree | b0912d848ca1b2324b3be5580498ad69f65d0f8e /include/media | |
parent | 17158f4a36ed16c779477a56ec831da55e8128fe (diff) | |
download | frameworks_av-020f79fd967736d36c7ec860814e2e93866a020f.zip frameworks_av-020f79fd967736d36c7ec860814e2e93866a020f.tar.gz frameworks_av-020f79fd967736d36c7ec860814e2e93866a020f.tar.bz2 |
Update audio comments
Change-Id: I85d7d2f6381b251db5695202fec75128883a8662
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/AudioTrack.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 3504f1f..b82f814 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -422,6 +422,7 @@ public: * After error return: * frameCount 0 * size 0 + * raw undefined * After successful return: * frameCount actual number of frames available, <= number requested * size actual number of bytes available @@ -510,7 +511,13 @@ protected: uint32_t mFrameCount; audio_track_cblk_t* mCblk; // re-load after mLock.unlock() - void* mBuffers; // starting address of buffers in shared memory + + // Starting address of buffers in shared memory. If there is a shared buffer, mBuffers + // is the value of pointer() for the shared buffer, otherwise mBuffers points + // immediately after the control block. This address is for the mapping within client + // address space. AudioFlinger::TrackBase::mBuffer is for the server address space. + void* mBuffers; + audio_format_t mFormat; audio_stream_type_t mStreamType; uint8_t mChannelCount; |