summaryrefslogtreecommitdiffstats
path: root/media/libnbaio
Commit message (Collapse)AuthorAgeFilesLines
* Move frameworks/av from fdprintf to POSIX dprintf.Elliott Hughes2014-05-221-1/+1
| | | | | Bug: 11156955 Change-Id: Ia98cd16b4c1f7be87cf060b7456de4f40896bacb
* Fix format warningsGlenn Kasten2014-04-281-3/+3
| | | | Change-Id: Id7aded4287cc8d5387a20389d3ef6220d67d1d88
* Add private method NBLog::Reader::dumpLine()Glenn Kasten2014-04-281-37/+43
| | | | | | | This allows us to abstract out fdprintf vs ALOGI so that callers don't need an 'if' at every location. Change-Id: I4c68185fc19f32caeaed93347e6b7d09b8d4c4d8
* Make frameworks/av 64-bit compatibleKévin PETIT2014-02-111-1/+1
| | | | | | | | | | | | Contains the necessary changes to make frameworks/av build and work on a 64-bit machine. Signed-off-by: Craig Barber <craig.barber@arm.com> Signed-off-by: Kévin PETIT <kevin.petit@arm.com> Signed-off-by: Ashok Bhat <ashok.bhat@arm.com> Signed-off-by: Marcus Oakland <marcus.oakland@arm.com> Change-Id: I725feaae50ed8eee25ca2c947cf15aee1f395c43
* Merge "Fix c++11 narrowing"Nick Kralevich2014-01-111-1/+1
|\
| * Fix c++11 narrowingsynergydev2013-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The best fix for these narrowing violations is to use static casting As an example, this change would the following for libnaio: error: non-constant-expression cannot be narrowed from type 'uint32_t' (aka 'unsigned int') to 'long' in initializer list const struct timespec req = {0, ns}; ^~ Change-Id: I04ed1de4497dc19772194afef3ebf8fe0c8b82bc
| * Add liblogYing Wang2013-04-091-1/+2
| | | | | | | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
| * Add non-blocking event logger NBLogGlenn Kasten2013-01-252-0/+450
| | | | | | | | Change-Id: I6c136cf3d7f46a8af84c69ecfc199dab394c10dc
| * Add NBAIO support for more sample ratesGlenn Kasten2012-11-011-39/+85
| | | | | | | | | | | | | | 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
| * Enable write side of MonoPipe to be shutdownGlenn Kasten2012-09-281-2/+13
| | | | | | | | | | Bug: 7253033 Change-Id: Iea8390763b59ffa7a8e2a6b77dd04ea23442698f
| * Check clock_gettime(CLOCK_MONOTONIC) for failureGlenn Kasten2012-09-241-0/+3
| | | | | | | | | | Bug: 7100774 Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
| * Documentation on pipesGlenn Kasten2012-08-301-0/+40
| | | | | | | | Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d
| * Move libnbaio out of AudioFlingerGlenn Kasten2012-08-3013-0/+1351
| | | | | | | | | | 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
* Fix miscellanous AudioTrack::getTimestamp() bugsGlenn Kasten2013-09-031-0/+3
| | | | | | | | | | | | | | Check that get_presentation_position is non-NULL before calling. AudioTrack::getTimestamp not implemented for fast tracks. Fix typo in Track::getTimestamp(). Fix bugs in AudioTrack::getTimestamp after stop: - getTimestamp while stopped is not allowed. - stop, start, getTimestamp now returns the correct value. Change-Id: Ie8d9dc1f28d8927634e04175a68b147ffc2ea8eb
* Implement MonoPipe::getTimestampGlenn Kasten2013-09-031-0/+3
| | | | | | using SingleStateQueue observer Change-Id: I7b1928b087f1e676c7b291df6cefa7707301662c
* Add ExtendedAudioBufferProvider::framesReleased and onTimestampGlenn Kasten2013-09-031-1/+12
| | | | | | | and implement them in SourceAudioBufferProvider using the associated NBAIO_Source, and in Track using the associated AudioTrackServerProxy. Change-Id: I60dc4adba63fc1dc452ff16caf347e4a7c8242c2
* Add NBAIO_Source::onTimestamp()Glenn Kasten2013-09-031-0/+5
| | | | | | | | 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
* Instantiate SingleStateQueue<AudioTimestamp>Glenn Kasten2013-09-032-2/+8
| | | | | | as typedef AudioTimestampSingleStateQueue and use it in MonoPipe. Change-Id: Idaebb362bd9d0a81a7ed83792ab9369dc37c0e74
* Add NBAIO_Sink::getTimestamp()Glenn Kasten2013-09-032-0/+17
| | | | | | | | | | 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
* Add liblogYing Wang2013-04-091-1/+2
| | | | | Bug: 8580410 Change-Id: If493d87d60d71be664ad75b140c62acadb75b0d0
* Add non-blocking event logger NBLogGlenn Kasten2013-01-252-0/+450
| | | | Change-Id: I6c136cf3d7f46a8af84c69ecfc199dab394c10dc
* Add NBAIO support for more sample ratesGlenn Kasten2012-11-011-39/+85
| | | | | | | 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
* Enable write side of MonoPipe to be shutdownGlenn Kasten2012-09-281-2/+13
| | | | | Bug: 7253033 Change-Id: Iea8390763b59ffa7a8e2a6b77dd04ea23442698f
* Check clock_gettime(CLOCK_MONOTONIC) for failureGlenn Kasten2012-09-241-0/+3
| | | | | Bug: 7100774 Change-Id: I15a84a19bb6d6ef1d9dac4beaa03587638196404
* Documentation on pipesGlenn Kasten2012-08-301-0/+40
| | | | Change-Id: I3de496c7db026c50dcb6bc577741bb65d08e7c9d
* Move libnbaio out of AudioFlingerGlenn Kasten2012-08-3013-0/+1351
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