summaryrefslogtreecommitdiffstats
path: root/media/libnbaio/MonoPipe.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Move roundup from frameworks/av to system/mediaGlenn Kasten2015-01-071-1/+1
| | | | Change-Id: I1083ab739e445e5bd3e3082fc1d3a20cc19601d5
* libnbaio: 64-bit compile warningsMark Salyzyn2014-06-201-2/+4
| | | | Change-Id: I9517c32193031dcc7af7b2104e985d66805b84aa
* Fix log spam when MonoPipe is unable to get local frequencyGlenn Kasten2014-03-251-6/+22
| | | | | | | | | Local frequency does not change, so only ask for it the first time a MonoPipe is constructed in a given client process. Thereafter use a previously cached value. Likewise, if the local frequency is unavailable, only log this the first time. Change-Id: Ib1fc7251c3832e02fe03811db39a87e500f1df50
* Use mFrameSize instead of mBitShiftGlenn Kasten2014-03-061-3/+3
| | | | Change-Id: Idac335ae70cc9300bb3325839fe8ef1e9e097245
* Use const NBAIO_Format& in parameter listsGlenn Kasten2014-01-311-1/+1
| | | | | | This is in preparation for changing the typedef to a struct. Change-Id: I8d73a6b29580c65105afd78f24db7e2f4a1eb872
* 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
| * 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
| * Move libnbaio out of AudioFlingerGlenn Kasten2012-08-301-0/+299
| | | | | | | | | | 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
* Implement MonoPipe::getTimestampGlenn Kasten2013-09-031-0/+3
| | | | | | using SingleStateQueue observer Change-Id: I7b1928b087f1e676c7b291df6cefa7707301662c
* Instantiate SingleStateQueue<AudioTimestamp>Glenn Kasten2013-09-031-1/+4
| | | | | | as typedef AudioTimestampSingleStateQueue and use it in MonoPipe. Change-Id: Idaebb362bd9d0a81a7ed83792ab9369dc37c0e74
* Add NBAIO_Sink::getTimestamp()Glenn Kasten2013-09-031-0/+5
| | | | | | | | | | 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
* 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
* Move libnbaio out of AudioFlingerGlenn Kasten2012-08-301-0/+299
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