History log of /frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b30330217356d0e10abe5220662424231dc57880 17-Mar-2016 Glenn Kasten <gkasten@google.com> Merge "Use audio_session_t consistently" into nyc-dev
15f1e492e8fe7e2b6665009b5facd2b42913ab0f 10-Mar-2016 Paul McLean <pmclean@google.com> Native routing phase 4

Allow Acquire before Realize

Bug: 23899814

Change-Id: I27682ecb5259fc6ebbe3eca5c6aba5d956aa42bb
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
213c31153b9bda7b5a091f2996da7b655c8ed451 08-Mar-2016 Glenn Kasten <gkasten@google.com> Use audio_session_t consistently

Bug: 27562099
Change-Id: Ie04efb44923fdd2f034b771157fa30dababdfb58
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
62496886cb4620c09bc5df0de70a883319616c25 22-Feb-2016 Aurimas Liutikas <aurimas@google.com> Enable -Werror and fix warnings in frameworks/wilhelm.

Bug: 27147881
Change-Id: I5e767007d85a160864a606926ee81adb94eae899
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
28340d1d9199b789f0db015680b008c98084f0b7 12-Feb-2016 ilewis <inl@google.com> Emulating old channel mask behavior for both input and output

This adds the "ignore positional channel masks" behavior back
into output as well as input.

Bug: 27042146
Change-Id: I51fc4a4494cd9477fdcddb6901cd353b88ea2c2e
(cherry picked from commit f4f89da331441ec4693c8ebb6ae3cf5460a22328)
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
33f46b8cd9ece650736a4aa5294318c6b51b2ffd 10-Feb-2016 ilewis <inl@google.com> Restore behavior of channel masks on input

In the past we ignored positional masks on input
and used the defaults based on channel count
instead. Changing this behavior to validate positional
input masks breaks apps that had relied on earlier
behavior, without adding much benefit. Restore
the original behavior on input.

Output channel masks have always been defined, so
no change to that behavior.

Bug: 27042146
Change-Id: I91544c719f450f2790b839981243451bc767933f
(cherry picked from commit deb4ccb9556d25dc0ad20a84efadf9a2bf62b20a)
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
4e8fe8a60c3aa8085918f15f281e0979682aefdc 13-Nov-2015 Paul McLean <pmclean@google.com> Fixed validation and translation for indexed channel masks

The channel mask validation code had a number of built-in
assumptions around positional masks. Most of these assumptions
are invalid for indexed masks.

The translation between OpenSLES channel masks and Android
channel masks also needed reworking; this CL attempts to
do it the right way by calling helper functions rather than
setting bits directly.

Bug: 23899736
Change-Id: I65b024b71e3267d2e9ca316ac74771e16462e134
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
e9b57cefb954e7c1bffc5d4b59f89aca5e050797 02-Dec-2015 rago <rago@google.com> Adding UNPROCESSED to the available audio_sources

bug: 25564291
Change-Id: Ie231263a517b7a0305c9e2e86d0608ae007afe3c
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
4e384ca65e5fd3eabac0621bed98f937d8a263c5 10-Jun-2015 Glenn Kasten <gkasten@google.com> Merge "Check sample size in addition to container size" into mnc-dev
71065fbf12abafd4c2a0dc85c81f13b564ff69fb 04-Jun-2015 Glenn Kasten <gkasten@google.com> Check sample size in addition to container size

Also add comments and fix line length

Change-Id: Iaac8ade2b53c3cc6951dc94413bbe996e1d5e925
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
6805ee0037e981af43e990d309280950d13addad 09-Jun-2015 Glenn Kasten <gkasten@google.com> Take advantage of audio_channel_in_mask_from_count

to support more than 2 input channels

Bug: 21375533
Change-Id: I1ccd5d1d68a25f415dc4a62bf7a44d9db12a256b
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
a80a6ff9a1f80792478c9d43578afa24a07eb2f0 04-Jun-2015 Glenn Kasten <gkasten@google.com> Only allow native byte ordering

Change-Id: Iebe0a9df03b988d84253aa74f6ef8392b337967c
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
df9b397f73d8f063ff66e0fbf86ced075fe6d5aa 04-Jun-2015 Glenn Kasten <gkasten@google.com> Remove redundant checks

Change-Id: I9f0f0063c3d8ba845c937aad97811d296ceaa494
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
ff25010cb77455a46357d6dd012631a2599d7bf4 04-Jun-2015 Glenn Kasten <gkasten@google.com> Start rewriting code that handles channel counts and masks

Change-Id: I700d719ee59c595b020979ecae56eb64bf657cca
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
274c079467f6ade516771b4c721c67041243cf4b 29-May-2015 Glenn Kasten <gkasten@google.com> Rewrite audio recorder to match player

Change-Id: I8b6b7d473939ad46db45c36115086b063627d013
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
904b880cdd214729d04b2cbd374287c3bb6c6606 30-May-2015 Glenn Kasten <gkasten@google.com> Merge "Rename checkSourceSinkSupport to checkSourceSink" into mnc-dev
abd09a98140420b6c861d30e30494cd769e745b7 30-May-2015 Glenn Kasten <gkasten@google.com> Merge "Whitespace" into mnc-dev
5d748826b90e8e3cdb740a220433fa60c6c9f31c 30-May-2015 Glenn Kasten <gkasten@google.com> Merge "Explicitly list all event types in switch for callback" into mnc-dev
9f3ac83aa036a780ca901f9ff75e47a5a7cbba1f 29-May-2015 Glenn Kasten <gkasten@google.com> Explicitly list all event types in switch for callback

Change-Id: I039ce75df2e6c483d09e7efd2d19303fc165c0d5
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
ac28eca1df49f581d952ffbda5d3019f7e3b7be6 29-May-2015 Glenn Kasten <gkasten@google.com> Whitespace

Change-Id: Ie9fa59703d90fa0a6d4b83d6d5bd637f53d4058c
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
43f23007e7b6e42fc765e3e7b178492b1a3fc392 29-May-2015 Glenn Kasten <gkasten@google.com> Remove MONITOR_RECORDING

This logging can now be done by AudioFlinger in debug builds.

Change-Id: I178470cfa7a0eb6312087d7f59623963dc610735
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
00a66a027199238a93b2aa9056af126efc09fe38 28-May-2015 Glenn Kasten <gkasten@google.com> Rename checkSourceSinkSupport to checkSourceSink

to match similar code in AudioPlayer

Change-Id: Ib5d4a23dae6e572e26241dc4c747aa0c72e6af8f
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
2dc0674aba6242c677365b675795773738397ab9 13-May-2015 Glenn Kasten <gkasten@google.com> Clear mAudioRecord on set() failure

All uses to mAudioRecord were already protected by checks for mAudioRecord != 0

Bug: 20818955
Bug: 20890069
Change-Id: I243205b99b198eb1b5a1a027b27cbb7d5aaaa8db
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
2523b697aa1fda376c2ccd72680394d359acbd3f 28-Apr-2015 Svet Ganov <svetoslavganov@google.com> Respect the record audio app op - wilhelm

Change-Id: I9fca6f47e91f8b755fed8317878e9e98d1730476
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
460bdad43aaec3c6ffe7f259719e00807742ad6d 24-Apr-2014 Glenn Kasten <gkasten@google.com> Audio recorder missing a callback protector

Bug: 14291968
Change-Id: I620d5e82f58e57e87097984a649b5c3a25c42963
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
5e3bcbffacc309fb2d9e002b7bc1ed131fddc6fc 02-Aug-2013 Glenn Kasten <gkasten@google.com> Always request fast track for recording

Change-Id: I76fc395e3b1babe41522023a56a37e4310b248e3
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
e5ede1a139fcedbf075675179d919fbe731898f0 13-Jun-2013 Glenn Kasten <gkasten@google.com> AudioRecord must be used as sp<> only

Bug: 9423855
Change-Id: Icc37559082f6c6c7052ac03a835a3d2c6732af59
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
3400c346f272492b52c7395c14d4a0f27603f87f 22-Jun-2012 Glenn Kasten <gkasten@google.com> Remove AudioRecord record_flags

Change-Id: I978579be3609c88d6fb6580a8cb3a594c76912a3
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
ee3ad477a71ba690f0b5721056a6514bf2f76bd8 16-Mar-2012 Glenn Kasten <gkasten@google.com> Merge "Fix indentation and redundant whitespace"
aadb8f72e49046c8aac8d60d5411f8ca30bd167a 07-Mar-2012 Glenn Kasten <gkasten@google.com> Use AudioRecord::record_flags consistently

Change-Id: Ibb185b1c461df2c17061a8a0d62cba0611a89e1e
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
adf8bd5d4360542b6b6c48c4471fdd8d855e05cc 24-Jan-2012 Glenn Kasten <gkasten@google.com> Use audio_source_t consistently

Use audio_source_t instead of int.

Change-Id: I88256ee508b8f5b50635985361efa7c458f11296
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
22ced1dc023dc000118e3a26517b14e9babd7c5a 12-Aug-2011 Glenn Kasten <gkasten@google.com> Fix indentation and redundant whitespace

Change-Id: I8e0193ad5aa9405f64203bf7814d8a9e434c5dde
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
ca426f63e9c900ecbd28f8e3037aaf47ef739dd4 03-Oct-2011 Glenn Kasten <gkasten@google.com> Consistent formatting for if (

Change-Id: I4213dbe94c7dbc95565a20d12d66eb16707d0caa
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
bcfe680db1e392f3bb29382c2e15e89c3af783ed 22-Aug-2011 Glenn Kasten <gkasten@google.com> Bug 5198051 MediaPlayer PLAYEVENT_HEAD* callbacks

Change-Id: Ibb04fbf727997281bb77fd22c51cd90bd044e505
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
c2a325746469c4c7625ec78a169b65a11dbe1e30 08-Aug-2011 Glenn Kasten <gkasten@google.com> Bug 5126938 dependency and miscellaneous bug fixes

Fixing bug 5126938 will involve adding the IAndroidConfiguration interface
to CMediaPlayer object. In the process of doing this, I found a few
miscellaneous bugs in the error handling for IAndroidConfiguration. This
CL fixes those bugs, and prepares for adding the interface CMediaPlayer
by making it easier to support new objects with the interface.

Details:

- Generic error handling:
Move some error checks from the object-specific code into the generic
IAndroidConfiguration.c.
Fix bug in SetConfiguration and GetConfiguration where we were not
checking configKey for NULL
Return SL_RESULT_FEATURE_UNSUPPORTED instead of
SL_RESULT_PARAMETER_INVALID if IAConfig interface is exposed on
an object which doesn't really support it (this could if the classes.c
interfaces table was updated before the cases were updated).
Compare with IMuteSolo for non-AudioPlayer.

- Object-specific error handling:
Fix bug where we weren't returning the actual value size in
audioPlayer_getConfig when pValueSize was non-NULL and pConfigValue
was NULL.
Return result SL_RESULT_BUFFER_INSUFFICIENT instead of
SL_RESULT_PARAMETER_INVALID when output buffer is specified
as non-NULL but available space is too small. Compare with
IAudioIODeviceCapabilities.
Return result SL_RESULT_SUCCESS instead of SL_RESULT_PARAMETER_INVALID
when output buffer is specified as NULL; this is intended to allow
the application to discover the required space. Compare with
IAudioIODeviceCapabilities.

- Use 'switch' instead of 'if' for checking object types, to improve
readability when adding more object types

Change-Id: I8b2cdd506a36bfa9b1326a8a9966a6633bbbba6d
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
1a9c2615d0933d183fcb1b9e34ec8f0da2a85153 07-Jul-2011 Glenn Kasten <gkasten@google.com> Rename ANDROID_UNKNOWN_* to UNKNOWN_*

Change-Id: I0d92b7d943690d9af7e08c400471f8b474728bff
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
47550bf6cf5cf08a402a54b1589f4b64582a5120 30-Jun-2011 Glenn Kasten <gkasten@google.com> Bug 4980997 Fix the AudioTrack start deadlock

Details:
- Added AudioTrackProxy, a RefBase proxy for AudioTrack
- Call AudioTrack::start() after unlock

Change-Id: Ib1a05ee57f78432eb4c9d3a5bd68dd31a78d6e3e
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
10a3840407ac3ed61e7873ee7b86d664ccc6149f 11-May-2011 Dima Zavin <dima@android.com> update for new audio.h header location

Change-Id: I2140f1def08bedd8b2bd5170c6ac5edccb80035c
Signed-off-by: Dima Zavin <dima@android.com>
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
ca39f4b4dbeb920a5b97bd65be73f2f7cac77431 06-Apr-2011 Dima Zavin <dima@android.com> system/media: convert to use new defines from hardware/audio.h

Change-Id: I8f0f0d26e10dbbb4dfbc3b52f1c02737a375c5e0
Signed-off-by: Dima Zavin <dima@android.com>
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
a8179ea15c4ff78db589d742b135649f0eda7ef2 13-Apr-2011 Glenn Kasten <gkasten@google.com> Fix build warnings caused by the 'long' change

Change-Id: I34e74d723ae7fd829dd140614928d7880e669f03
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
b05ea38e5131001884aa226f90fd50cf594a23f3 06-Apr-2011 Jean-Michel Trivi <jmtrivi@google.com> OpenSL ES / OpenMAX AL code clean up

Do not use cryptic acronyms for Android object type definitions.

Harmonize object state and type naming conventions.

Change-Id: I62bed7aba2e0b9ea0c47264af8e3cf29f74746a8
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp
b2aeb0f1009555181dabb944fe05901cb6e6f632 12-Jan-2011 Jean-Michel Trivi <jmtrivi@google.com> More file renames and header inclusion reorder

More file renames and include reordering to separate Android
classes, and the mapping of the C OpenSL ES and OpenMAX AL
function calls to the Android implementation.

Change-Id: Id6f63af80bd581ed9cab495e2c11a86589ecf6c9
/frameworks/wilhelm/src/android/AudioRecorder_to_android.cpp