diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-07 08:09:22 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-11-07 08:09:23 -0800 |
commit | b2800e8f1360cbc3c5af2bea228b9622b1ddc9dd (patch) | |
tree | e1e86686fca8bdb6059476d13754684d8a04a87d /include | |
parent | a7c616bf961e58d99449637688e947816fce795e (diff) | |
parent | 8424361609e0a94b9a240b43920529a84a63ed15 (diff) | |
download | frameworks_av-b2800e8f1360cbc3c5af2bea228b9622b1ddc9dd.zip frameworks_av-b2800e8f1360cbc3c5af2bea228b9622b1ddc9dd.tar.gz frameworks_av-b2800e8f1360cbc3c5af2bea228b9622b1ddc9dd.tar.bz2 |
Merge "Remove unused fields in AudioTrack::Buffer"
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioTrack.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index 76af2f8..529f74e 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -70,14 +70,6 @@ public: class Buffer { public: - enum { - MUTE = 0x00000001 - }; - uint32_t flags; // 0 or MUTE - audio_format_t format; // but AUDIO_FORMAT_PCM_8_BIT -> AUDIO_FORMAT_PCM_16_BIT - // accessed directly by WebKit ANP callback - int channelCount; // will be removed in the future, do not use - size_t frameCount; // number of sample frames corresponding to size; // on input it is the number of frames desired, // on output is the number of frames actually filled @@ -418,6 +410,17 @@ public: * +n limits wait time to n * WAIT_PERIOD_MS, * -1 causes an (almost) infinite wait time, * 0 non-blocking. + * + * Buffer fields + * On entry: + * frameCount number of frames requested + * After error return: + * frameCount 0 + * size 0 + * After successful return: + * frameCount actual number of frames available, <= number requested + * size actual number of bytes available + * raw pointer to the buffer */ enum { |