diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-06 14:25:20 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-06 14:37:04 -0800 |
commit | 8424361609e0a94b9a240b43920529a84a63ed15 (patch) | |
tree | b02439b49ce632e2fcdd858b3b31bc701a5303e0 /include | |
parent | 96f1528dd637c6e806456d56c635ab2e92b0bd9b (diff) | |
download | frameworks_av-8424361609e0a94b9a240b43920529a84a63ed15.zip frameworks_av-8424361609e0a94b9a240b43920529a84a63ed15.tar.gz frameworks_av-8424361609e0a94b9a240b43920529a84a63ed15.tar.bz2 |
Remove unused fields in AudioTrack::Buffer
Change-Id: Iab75f6e2348d8b6d1f3cec95aeb3fcd5135dfb50
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 { |