summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Force RAW to reduce latency on platforms that support itGlenn Kasten2015-09-101-1/+1
| | | | | Bug: 10546170 Change-Id: Ida0d060b6b777ff5c920224f051e8ea557ff6c18
* Update OpenSL ES for odd channel countsAndy Hung2015-07-302-4/+38
| | | | | Bug: 22629234 Change-Id: I3effb86dc7418997e8b24bf8a11c757878c99693
* Reduce build warningsGlenn Kasten2015-06-197-16/+18
| | | | Change-Id: I27e41dc5c6cecc4933271a12862bdc297b245ee3
* Merge "Check sample size in addition to container size" into mnc-devGlenn Kasten2015-06-094-6/+30
|\
| * Check sample size in addition to container sizeGlenn Kasten2015-06-084-6/+30
| | | | | | | | | | | | Also add comments and fix line length Change-Id: Iaac8ade2b53c3cc6951dc94413bbe996e1d5e925
* | Merge "Use only strong references to AudioEffect" into mnc-devEric Laurent2015-06-094-15/+12
|\ \
| * | Use only strong references to AudioEffectEric Laurent2015-06-084-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | Do not use raw pointers to native AudioEffect objects. Bug: 21629892. Change-Id: Ib6af552503584c5f0532ff6dee2829da6e10ac88
* | | Merge "Take advantage of audio_channel_in_mask_from_count" into mnc-devGlenn Kasten2015-06-091-2/+3
|\ \ \
| * | | Take advantage of audio_channel_in_mask_from_countGlenn Kasten2015-06-081-2/+3
| | |/ | |/| | | | | | | | | | | | | | | | to support more than 2 input channels Bug: 21375533 Change-Id: I1ccd5d1d68a25f415dc4a62bf7a44d9db12a256b
* / | Add FCC_8 comments to indicate 8-channel assumptionsGlenn Kasten2015-06-083-5/+6
|/ / | | | | | | | | Bug: 21656069 Change-Id: I411a5c83eec126bc6cda796bd4c9f842ed6ee762
* | Only allow native byte orderingGlenn Kasten2015-06-084-10/+16
| | | | | | | | Change-Id: Iebe0a9df03b988d84253aa74f6ef8392b337967c
* | Remove redundant checksGlenn Kasten2015-06-082-75/+8
| | | | | | | | Change-Id: I9f0f0063c3d8ba845c937aad97811d296ceaa494
* | Start rewriting code that handles channel counts and masksGlenn Kasten2015-06-0510-61/+106
|/ | | | Change-Id: I700d719ee59c595b020979ecae56eb64bf657cca
* Simplify code in android_audioPlayer_checkSourceSink()Glenn Kasten2015-06-041-12/+3
| | | | Change-Id: I12bd19ca899dbcc8b3ef7c9a10cf871ad3ac49c5
* Allow arbitrary sample rates that are within OpenSL ES rangeGlenn Kasten2015-06-041-19/+3
| | | | | Bug: 15931230 Change-Id: I86292c28896b6fc445a6cf30d8e187679f18668e
* Merge "Compare raw pointers to NULL" into mnc-devGlenn Kasten2015-06-041-3/+3
|\
| * Compare raw pointers to NULLGlenn Kasten2015-06-041-3/+3
| | | | | | | | Change-Id: I2ab197f2f20ff22204e01d0e115f2aee2f5ef166
* | Remove dead code in android_sles_conversions.hGlenn Kasten2015-06-041-10/+0
|/ | | | Change-Id: Ibc45f2857d66fcab6902085fc79d55e9ee1ddb36
* Rewrite audio recorder to match playerGlenn Kasten2015-06-021-43/+73
| | | | Change-Id: I8b6b7d473939ad46db45c36115086b063627d013
* Merge "Rename checkSourceSinkSupport to checkSourceSink" into mnc-devGlenn Kasten2015-05-293-4/+4
|\
| * Rename checkSourceSinkSupport to checkSourceSinkGlenn Kasten2015-05-293-4/+4
| | | | | | | | | | | | to match similar code in AudioPlayer Change-Id: Ib5d4a23dae6e572e26241dc4c747aa0c72e6af8f
* | Merge "Whitespace" into mnc-devGlenn Kasten2015-05-297-32/+32
|\ \
| * | WhitespaceGlenn Kasten2015-05-297-32/+32
| |/ | | | | | | Change-Id: Ie9fa59703d90fa0a6d4b83d6d5bd637f53d4058c
* | Merge "Explicitly list all event types in switch for callback" into mnc-devGlenn Kasten2015-05-292-0/+12
|\ \
| * | Explicitly list all event types in switch for callbackGlenn Kasten2015-05-292-0/+12
| |/ | | | | | | Change-Id: I039ce75df2e6c483d09e7efd2d19303fc165c0d5
* | Merge "Allow playback of sample rates up to 192 kHz" into mnc-devGlenn Kasten2015-05-291-16/+2
|\ \
| * | Allow playback of sample rates up to 192 kHzGlenn Kasten2015-05-281-16/+2
| | | | | | | | | | | | | | | | | | | | | The check for non-common sample rates is still present in data.c Bug: 21501319 Change-Id: Iffb3c962004d2a0fe1ec1b2cc9ee0ebf943f142b
* | | Remove MONITOR_RECORDINGGlenn Kasten2015-05-291-28/+0
| |/ |/| | | | | | | | | This logging can now be done by AudioFlinger in debug builds. Change-Id: I178470cfa7a0eb6312087d7f59623963dc610735
* | Remove redundant parenthesesGlenn Kasten2015-05-292-7/+7
| | | | | | | | Change-Id: Ia7de3564a8065f33aa74655b01357f4138b32aa8
* | Remove dead codeGlenn Kasten2015-05-291-8/+0
| | | | | | | | Change-Id: I7515a5d3deed85e2835742a362fbc1a2df8f880f
* | Add static for methods only used locallyGlenn Kasten2015-05-292-0/+6
| | | | | | | | Change-Id: I5e7d5c93869b31f75efc9fd3f040df82b67d9efd
* | Add constGlenn Kasten2015-05-291-4/+4
| | | | | | | | Change-Id: Ide3011e14c8a4c5c0d29db77e7c99789c37c30a7
* | Fix typo in channel mask commentGlenn Kasten2015-05-281-1/+1
| | | | | | | | Change-Id: I648051c7489ec631d02a675def91635f2ad86a53
* | WhitespaceGlenn Kasten2015-05-283-14/+13
| | | | | | | | Change-Id: I666963a80530aceec9f47e625018844daf29c017
* | Line length 100Glenn Kasten2015-05-281-1/+2
| | | | | | | | Change-Id: I91c6231d22361361cda80d96c9d3ded5c93b6103
* | Explicitly compare raw pointers to NULLGlenn Kasten2015-05-281-3/+3
| | | | | | | | Change-Id: I6e867fea4067e0e0497d91c0750bbdcbe44d7f7a
* | Remove redundant semicolonGlenn Kasten2015-05-281-1/+1
|/ | | | Change-Id: Ida3b82c09164e3bbf99d36b3cbd8607a9eefb45c
* Clear mAudioRecord on set() failureGlenn Kasten2015-05-182-3/+8
| | | | | | | | All uses to mAudioRecord were already protected by checks for mAudioRecord != 0 Bug: 20818955 Bug: 20890069 Change-Id: I243205b99b198eb1b5a1a027b27cbb7d5aaaa8db
* Respect the record audio app op - wilhelmSvet Ganov2015-04-282-2/+7
| | | | Change-Id: I9fca6f47e91f8b755fed8317878e9e98d1730476
* Add a static cast to resolve overload ambiguity.Chris Watkins2015-04-141-1/+1
| | | | | | | | The IMediaPlayer interface was updated with a new overload for setDataSource which caused a compiler error in StreamPlayer. Add a static cast to resolve the ambiguity. Change-Id: I26a3dc4bee1680cb260e93a151483baf398a4399
* stagefright: make AMessage use handler vs handler-idLajos Molnar2015-03-045-25/+25
| | | | | Bug: 19607784 Change-Id: I55accc49eec725ede0da3d1bfab448320fece926
* Line length 100Glenn Kasten2014-12-302-4/+8
| | | | Change-Id: Ic27cdff0edc815284ce4bc0cecd84b0e00d1f3a4
* am b73cd339: Merge "Cleanup Obsolete LOCAL_PRELINK_MODULE."Ying Wang2014-12-161-3/+0
|\ | | | | | | | | * commit 'b73cd3393bada4f4a99d9099c08bbb6b01388083': Cleanup Obsolete LOCAL_PRELINK_MODULE.
| * Cleanup Obsolete LOCAL_PRELINK_MODULE.Ying Wang2014-12-161-3/+0
| | | | | | | | | | Bug: 18675947 Change-Id: Id84541b59ab172a092059dba564f64b73fa0c319
* | am 7fe8bdd1: Merge "Add std=gnu++11 flag to compile .c files as C++."Chih-Hung Hsieh2014-12-051-3/+3
|\| | | | | | | | | * commit '7fe8bdd1af9dec49682f3249856963860b073472': Add std=gnu++11 flag to compile .c files as C++.
| * Add std=gnu++11 flag to compile .c files as C++.Chih-Hung Hsieh2014-12-041-3/+3
| | | | | | | | | | | | | | | | | | | | Currently the -x c++ flag is used to compile .c files as C++. For clang compilers, default extra C flags for Android .c files is -std=gnu99. Clang compiler rejects -std=gnu99 in C++ mode. Until we rename all .c file in this directory to .cpp, we can use this patch to force compilation in -x c++ and -std=gnu++11. Change-Id: Ibbb1c1394ac1cb45c6508a62986edf669e722cbd
* | am 0f6da1a2: Reduce audio output latencyRaph Levien2014-11-183-25/+26
|\ \ | |/ |/| | | | | * commit '0f6da1a299c8dd924d19714ee69d343915c32d2c': Reduce audio output latency
| * Reduce audio output latencyRaph Levien2014-11-143-25/+26
| | | | | | | | | | | | | | | | This patch reduces latency in the OpenSL ES player path by calling the callback immediately before data is consumed, rather than after. Bug: 12246268 Change-Id: I8273b4a03f16011beec21dd52545f8ad1a25fd95
* | Merge "Check that the ABQ mime type matches the expectations"Glenn Kasten2014-11-101-0/+8
|\ \
| * | Check that the ABQ mime type matches the expectationsMartin Storsjo2014-05-271-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code in audioPlayer_getAndroidObjectTypeForSourceSink assumes that an android buffer queue source combined with an output mix sink is an mpegts source, while it it assumes that it is an adts source if it is combined with a simple buffer queue sink. This assumption never was verified before, making the set up actually seem to succeed even though the data is interpreted as the wrong format. Change-Id: I7e031ec8139fa2d770737935eb9acd3506d3fa3f