History log of /frameworks/av/include/media/nbaio/NBAIO.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
200092b7f21d2b98f30b800e79d152636f9ba225 16-Aug-2014 Glenn Kasten <gkasten@google.com> Clean up AudioTrack position and timestamp handling

Replace epoch concept by observing and accumulating server delta
positions. The advantage of using server deltas instead of absolute
values is that they (1) are not sensitive to 32-bit wraparound,
(2) are not sensitive to server behavior for stop(), and
(3) prepare for future 64-bit client positions without requiring 64-bit
positions on server.

Add comments to AudioTrack::getTimestamp() and friends
that the timestamp output parameter is undefined on error.

Don't allow getTimestamp to return a negative frame position after stop().

Accumulate the client released frames, which may be useful for a future API.

Bug: 11815245
Change-Id: I652940fa2db2f34a78c012a3ead0d9204fa29c6e
/frameworks/av/include/media/nbaio/NBAIO.h
55e599daff7712142095f546b7e5bf2dcda807a8 06-Mar-2014 Glenn Kasten <gkasten@google.com> Miscellaneous cleanup for NBAIO

Finish removing Format_frameBitShift
Fix type of mFrameSize
Add FIXME

Change-Id: I02039b97cb93af1a180e88f6575210bd752faf20
/frameworks/av/include/media/nbaio/NBAIO.h
f69f9869514730aebe5724c461768507084dfff7 07-Mar-2014 Glenn Kasten <gkasten@google.com> NBAIO::Format_from_SR_C requires audio_format_t parameter

Change-Id: I4b65f6ed2f6ca3608b3a5f88f52a93af0b9b1f4a
/frameworks/av/include/media/nbaio/NBAIO.h
c326e1c3d122917462f1cda4f03d9c639ad92902 06-Mar-2014 Glenn Kasten <gkasten@google.com> Remove Format_frameBitShift()

Change-Id: Iae2e80a7330c5dd0f70a263051aa44c23cfe3541
/frameworks/av/include/media/nbaio/NBAIO.h
2b7b910f4b417ab3930379298f538d0dfc857e88 06-Mar-2014 Glenn Kasten <gkasten@google.com> Split mPacked into 4 separate fields

Change-Id: I940324dce9b51fd8d7e2e362e12ad74b70e658dd
/frameworks/av/include/media/nbaio/NBAIO.h
f95a3c4122d67273d930c7d83c3df99f136603ed 06-Mar-2014 Glenn Kasten <gkasten@google.com> Add format parameter to Format_from_SR_C

Change-Id: I891138b7754342fe2a4f02de30ee616dbd078474
/frameworks/av/include/media/nbaio/NBAIO.h
ac3e9db88ddb1f24bc6c8fb744a37dfdeec332bb 06-Mar-2014 Glenn Kasten <gkasten@google.com> Add mFrameSize but do not remove mFrameBitShift yet

Change-Id: Icb1edefeb6a0e659503f6b7a92c9d15784df9865
/frameworks/av/include/media/nbaio/NBAIO.h
4d7b3f876b21997680ae32a340d746ed1cae6ab1 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change Format_frameBitShift() API for non-power-of-2 sizes

Change-Id: Ie39ff51ab8c403ca9d9898396297efdaa3193588
/frameworks/av/include/media/nbaio/NBAIO.h
1ec712f180072a7eb2131be09862921ae62dc2b4 31-Jan-2014 Glenn Kasten <gkasten@google.com> Add FIXMEs about audio_format_t assumption

Change-Id: I0d38241b61f70013573f4a0b9306547afe5f38ad
/frameworks/av/include/media/nbaio/NBAIO.h
c4b8b32dec91a11a83d0a7ab49747606d16d39a5 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change NBAIO_Format from typedef to struct

This will make it easier to support arbitrary sample rates,
channel counts, and sample formats in NBAIO.

Change-Id: I5eda412648b094358f5eefc38300e9ec8a734cd3
/frameworks/av/include/media/nbaio/NBAIO.h
cc1e0e807ee9a9f163a4685cbd6efd6ae55849cf 31-Jan-2014 Glenn Kasten <gkasten@google.com> Add Format_isValid() and Format_isEqual() to NBAIO

This is in preparation for changing the typedef to a struct.

Change-Id: I8eb1c7d98fd12f997641e462359864fdb834abe6
/frameworks/av/include/media/nbaio/NBAIO.h
51d53cd993043d9286e12cba884e6ee4d10b5fac 31-Jan-2014 Glenn Kasten <gkasten@google.com> Change Format_Invalid from enum to global const

This is in preparation for changing the typedef to a struct

Change-Id: I36d1fe81d2f974224750f753453753303c224591
/frameworks/av/include/media/nbaio/NBAIO.h
72e54af9fcdc4754914fe2bf8de699523538b315 31-Jan-2014 Glenn Kasten <gkasten@google.com> Use const NBAIO_Format& in parameter lists

This is in preparation for changing the typedef to a struct.

Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
/frameworks/av/include/media/nbaio/NBAIO.h
894d6be4f9b4721c77a01919ecf03b27cec90cc9 26-Aug-2013 Glenn Kasten <gkasten@google.com> Add NBAIO_Source::onTimestamp()

with dummy default implementation, and implement in MonoPipeReader.
onTimestamp is meant to be called by the corresponding sink when it has
a new timestamp available.

Change-Id: I8a90d24d1061e4a592ce5bd8ee1c9fce6bdd8a84
/frameworks/av/include/media/nbaio/NBAIO.h
767094dd98b01baf21de2ad09c27b3c98776cf73 23-Aug-2013 Glenn Kasten <gkasten@google.com> Add NBAIO_Sink::getTimestamp()

with a real implementation in AudioStreamOutSink
for dummy implementation initially in MonoPipe.

Use in AudioFlinger::PlaybackThread::threadLoop_write()
to keep the input to the timestamp latch up-to-date.

Change-Id: I10ef277991b63bb43d55d6f3df75116ef32246cd
/frameworks/av/include/media/nbaio/NBAIO.h
b64497eb8724c4c372fffdbf3ee30543432953c5 01-Oct-2012 Glenn Kasten <gkasten@google.com> Add NBAIO support for more sample rates

This will be used for audio capture but it is not scalable,
and we need a better approach in the long term.

Change-Id: I8b12f6b64a3fd8e8a8c425c82574260fe8ffbed6
/frameworks/av/include/media/nbaio/NBAIO.h
2dd4bdd715f586d4d30cf90cc6fc2bbfbce60fe0 29-Aug-2012 Glenn Kasten <gkasten@google.com> Move libnbaio out of AudioFlinger

libnbaio is now a separate shared library from AudioFlinger, rather
than a static library used only by AudioFlinger.

AudioBufferProvider interface is now also independent of AudioFlinger,
moved to include/media/

Change-Id: I9bb62ffbc38d42a38b0af76e66da5e9ab1e0e21b
/frameworks/av/include/media/nbaio/NBAIO.h