summaryrefslogtreecommitdiffstats
path: root/media/libmedia
Commit message (Collapse)AuthorAgeFilesLines
* Fix operator precedenceGlenn Kasten2014-03-251-2/+2
| | | | Change-Id: I164708a5b76a341a185467b008ecbec98d58a6df
* Merge "Add MediaPlayer::getAudioStreamType."John Spurlock2014-03-191-0/+8
|\
| * Add MediaPlayer::getAudioStreamType.John Spurlock2014-03-191-0/+8
| | | | | | | | Change-Id: I9cd8a718d2873543609aa651fd85749478f4f89f
* | Use more tags to help the ICU detector.Marco Nelissen2014-03-192-20/+99
|/ | | | | | | | | | | | | The detector only gave non-ascii data to ICU. In some cases that could result in very short data, for which ICU would issue a low confidence level for the actual encoding. By padding the data with additional (ascii) tags, we improve accuracy for such files. Becauses this can reduce accuracy in other cases, only do this when the initial confidence is low. b/13473604 Change-Id: I63d932043155c310b0e358cdf2d37787961e94b7
* Remove name output parameter from createTrackGlenn Kasten2014-03-142-8/+2
| | | | | | | It was only used for one log. A better solution will be a per-track unique ID. Change-Id: Ia440e02ae4a5a4019a9a2d08970e1ee93ac4c3a3
* Merge "AudioTrack non-blocking write"Jean-Michel Trivi2014-03-111-2/+3
|\
| * AudioTrack non-blocking writeJean-Michel Trivi2014-03-031-2/+3
| | | | | | | | | | | | Bug 7531968 Change-Id: I6d0e79fa8cab5b6eb36bcc34977f4cf0d7eec8ea
* | Fix freeze on pauseMarco Nelissen2014-03-101-1/+1
| | | | | | | | | | | | | | isOffloaded() tries to lock mLock again. We should be calling isOffloaded_l() b/13394633 Change-Id: I155be6fee937f894d8e6c974e593223ab6014ade
* | Merge "Simplify AudioTrack stream end and fix race"Glenn Kasten2014-03-071-17/+15
|\ \
| * | Simplify AudioTrack stream end and fix raceGlenn Kasten2013-09-291-17/+15
| | | | | | | | | | | | | | | Bug: 10994052 Change-Id: Ib2e38e7a600bcffef8cbc68c1722e40fbbc7ea67
* | | AudioTrack: When paused, return cached playback positionHaynes Mathew George2014-03-061-3/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An offload output can be re-used between two audio tracks having the same configuration. A timestamp query for a paused track while the other is running would return an incorrect time. To fix this, cache the playback position on a pause() and return this time when requested until the track is resumed. Bug: 12826612. Change-Id: I324112ea9827e52fff53ef44cd8513c8d85a0bc4
* | | audio policy service: clean up type casting.Eric Laurent2014-03-051-6/+8
| | | | | | | | | | | | Change-Id: If16d6495c16e0d61a221f81bfd49e7d14bbfdc12
* | | Merge "Make openRecord_l more like createTrack_l for fast tracks: part 3"Glenn Kasten2014-03-011-7/+12
|\ \ \
| * | | Make openRecord_l more like createTrack_l for fast tracks: part 3Glenn Kasten2014-02-281-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Create the callback thread earlier, before creating the IAudioRecord, so that the thread's tid is available as a parameter to openRecord(). Also move initialization of mCbf to same point as in AudioTrack.cpp. Change-Id: I61ea4c5e2724ccfc691aaf51bc02a7c10d5a7495
* | | | Merge "Make openRecord_l more like createTrack_l for fast tracks: part 2"Glenn Kasten2014-02-281-10/+11
|\ \ \ \ | |/ / /
| * | | Make openRecord_l more like createTrack_l for fast tracks: part 2Glenn Kasten2014-02-281-10/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Assume double-buffering because we don't know the true HAL sample rate, and for fast tracks we must accomodate kernel scheduling and app computation jitter. Change-Id: I983d6048a8b4814cfa5bf789397cdd9f1572256c
* | | | Rename setStreamOutput to invalidateStreamGlenn Kasten2014-02-281-8/+6
|/ / / | | | | | | | | | | | | | | | And simplify by removing the unused I/O handle parameter 'output'. Change-Id: Ie9c4df17a7378066312d4ed8790fda7a9125c95e
* | | Merge "Make openRecord_l more like createTrack_l for fast tracks: part 1"Glenn Kasten2014-02-282-11/+23
|\ \ \
| * | | Make openRecord_l more like createTrack_l for fast tracks: part 1Glenn Kasten2014-02-272-11/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the transfer mode to distinguish use cases, as the presence of a callback handler is not sufficient. For example, the track could be configured for synchronous transfer with write() or read(), and also have a callback handler for position updates. But that does not mean the track can operate in fast track mode. Change-Id: I2a7f1f0ca98e68efe180b524496985109d8ce291
* | | | Fix type of AudioTrack/AudioRecord parameter frameCountGlenn Kasten2014-02-284-24/+10
| | | | | | | | | | | | | | | | | | | | | | | | It's size_t consistently Change-Id: I29638ef59ac773218025f2403a3508a307b487e0
* | | | Fix type of AudioTrack/AudioRecord parameter notificationFramesGlenn Kasten2014-02-282-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | It's uint32_t consistently Change-Id: If8298c7e9aeea2b951fe47b675adbdf48d104846
* | | | Merge "Don't crash on remote read error, just return"Marco Nelissen2014-02-271-1/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Don't crash on remote read error, just returnMarco Nelissen2014-02-271-1/+4
| | | | | | | | | | | | | | | | Change-Id: I35a2af255f55e008d64142ed0eceb6e83473d630
* | | | Fix includes to no longer pull in Skia includes directories.Derek Sollenberger2014-02-271-1/+0
| | | | | | | | | | | | | | | | | | | | bug:13225538 Change-Id: I4fccc414923f7e62cd46d691c67cb44b9692c225
* | | | Simplify error handling after track creationGlenn Kasten2014-02-252-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | IAudioFlinger::createTrack and IAudioFlinger::openRecord both guarantee that (status == OK) == (sp<> != 0). Change-Id: I91cb4f7e843019efb65cace7ba146f7da7aa5b59
* | | | Move initialize of mInput to match AudioTrackGlenn Kasten2014-02-251-3/+3
| | | | | | | | | | | | | | | | Change-Id: I4dc977f22f51cd618dc83d800b4b8756929a4612
* | | | Update comments to match AudioTrackGlenn Kasten2014-02-251-1/+3
| | | | | | | | | | | | | | | | Change-Id: I7dd14eabd78c9130a157da2063a1d65ec4f9c65a
* | | | Move initialization of mRefreshRemaining to match AudioTrackGlenn Kasten2014-02-251-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This also fixes a bug where, for a re-created IAudioRecord, mRefreshRemaining was not being reset correctly. Change-Id: I9f721a4edf92aab859cf3f247ab7f65562d14fb0
* | | | Merge "mAudioRecord is always non-0 if set() is successful"Glenn Kasten2014-02-251-4/+4
|\ \ \ \
| * | | | mAudioRecord is always non-0 if set() is successfulGlenn Kasten2014-02-241-4/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I0c2483210903c922f06f097ada373a37b9a90a02
* | | | | Merge "Unify comments and whitespace between AudioTrack and AudioRecord"Glenn Kasten2014-02-252-1/+5
|\ \ \ \ \ | |/ / / /
| * | | | Unify comments and whitespace between AudioTrack and AudioRecordGlenn Kasten2014-02-242-1/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I5320a6b2d7f7077cb12d7da4f2ca30a940100bf2
* | | | | Merge "Update channel fields at same place in AudioTrack and AudioRecord"Glenn Kasten2014-02-251-4/+3
|\ \ \ \ \ | |/ / / /
| * | | | Update channel fields at same place in AudioTrack and AudioRecordGlenn Kasten2014-02-241-4/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I4b649feeef47e7968a9fa3a460217017ca9b05fe
* | | | | Merge "Update mReqFrameCount at same point in AudioTrack and AudioRecord"Glenn Kasten2014-02-251-5/+5
|\ \ \ \ \ | |/ / / /
| * | | | Update mReqFrameCount at same point in AudioTrack and AudioRecordGlenn Kasten2014-02-241-5/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I12369dfbb9e75389f2cab015a706decdaf310a0d
* | | | | Merge "Permit AudioRecord to support non-linear formats in future"Glenn Kasten2014-02-251-2/+5
|\ \ \ \ \ | |/ / / /
| * | | | Permit AudioRecord to support non-linear formats in futureGlenn Kasten2014-02-241-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | But still restricted to 16-bit PCM currently Change-Id: I5df0e5033da9144ca73e44addf14a63d31406034
* | | | | Merge "Simplify and cleanup error handling in AudioRecord::getMinFrameCount"Glenn Kasten2014-02-251-17/+10
|\ \ \ \ \
| * | | | | Simplify and cleanup error handling in AudioRecord::getMinFrameCountGlenn Kasten2014-02-251-17/+10
| | |_|_|/ | |/| | | | | | | | | | | | | Change-Id: I8721ecedfb429c4e233453d1e768ddf69ecabbe4
* | | | | Merge "Add log at entry to set() in AudioTrack and AudioRecord"Glenn Kasten2014-02-252-3/+10
|\ \ \ \ \ | | |/ / / | |/| / / | |_|/ / |/| | |
| * | | Add log at entry to set() in AudioTrack and AudioRecordGlenn Kasten2014-02-242-3/+10
| |/ / | | | | | | | | | Change-Id: Ife23b88474c1d62c0cf682c1a310d951f2c0f54a
* | | Add method to get redirected UriMarco Nelissen2014-02-211-0/+21
|/ / | | | | | | Change-Id: Id8aac1077c3de1bb1f58bfcfcca93d685abe9b79
* | Merge "Simplify and remove old comment"Glenn Kasten2014-02-181-3/+1
|\ \
| * | Simplify and remove old commentGlenn Kasten2014-02-181-3/+1
| | | | | | | | | | | | Change-Id: Iee41641252f65cea9ce0ea0ec1ea4229608f7c64
* | | Multi-client recordingGlenn Kasten2014-02-181-1/+3
|/ / | | | | | | | | | | Supports multiple clients both at native sample rate and with resampling. Change-Id: Icea55b4fd30751761b7debaa3ce016c79e712d8d
* | Merge "Move StateQueueInstantiations to libinstantssq"Glenn Kasten2014-02-181-6/+16
|\ \
| * | Move StateQueueInstantiations to libinstantssqGlenn Kasten2014-02-181-6/+16
| | | | | | | | | | | | | | | | | | This removes a circular dependency between libmedia and libnbaio Change-Id: I3692cbbe2b76028a953b36606b62cdda70c8c26f
* | | Fix warning due to incorrect log formatGlenn Kasten2014-02-181-1/+1
|/ / | | | | | | Change-Id: I58ff399ace74965ebf8e5690c20637385f9425ad
* | Track pid for each sessionMarco Nelissen2014-02-115-22/+39
| | | | | | | | | | | | so they can be properly freed. Change-Id: I6f389035bc29e74e7c367c1c6d0252b180f666b3