webrtc/modules/audio_device/android
henrika 29e865a5d8 Adds stereo support to FineAudioBuffer for mobile platforms.
...continuation of review in https://webrtc-review.googlesource.com/c/src/+/70781

This CL ensures that the FineAudioBuffer can support stereo and also adapts
all classes which uses the FineAudioBuffer.

Note that, this CL does NOT enable stereo on mobile platforms by default. All it does is to ensure
that we *can*. As is, the only functional change is that all clients
will now use a FineAudioBuffer implementation which supports stereo (see
separate unittest).

The FineAudioBuffer constructor has been modified since it is better to
utilize the information provided in the injected AudioDeviceBuffer pointer
instead of forcing the user to supply redundant parameters.

The capacity parameter was also removed since it adds no value now when the
more flexible rtc::BufferT is used.

I have also done local changes (not included in the CL) where I switch
all affected audio backends to stereo and verified that it works in real-time
on all affected platforms (Androiod:OpenSL ES, Android:AAudio and iOS).

Also note that, changes in:

sdk/android/src/jni/audio_device/aaudio_player.cc
sdk/android/src/jni/audio_device/aaudio_recorder.cc
sdk/android/src/jni/audio_device/opensles_player.cc
sdk/android/src/jni/audio_device/opensles_recorder.cc

are simply copies of the changes done under modules/audio_device/android since we currently
have two versions of the ADM for Android.

Bug: webrtc:9172
Change-Id: I1ed3798bd1925381d68f0f9492af921f515b9053
Reviewed-on: https://webrtc-review.googlesource.com/71201
Commit-Queue: Henrik Andreassson <henrika@webrtc.org>
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22998}
2018-04-24 11:58:54 +00:00
..
java/src/org/webrtc/voiceengine Temporary suppress bytebuffer warnings. 2018-04-20 11:45:28 +00:00
aaudio_player.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
aaudio_player.h Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
aaudio_recorder.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
aaudio_recorder.h Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
aaudio_wrapper.cc Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
aaudio_wrapper.h Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
audio_common.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_device_template.h Removes usage of AGC APIs in the ADM. 2017-12-13 16:32:21 +00:00
audio_device_unittest.cc Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
audio_manager_unittest.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_manager.cc Force alignment of JVM called functions. 2018-03-23 10:20:55 +00:00
audio_manager.h Add support of AAudio in native WebRTC on Android O and above 2018-03-16 10:20:27 +00:00
audio_record_jni.cc Force alignment of JVM called functions. 2018-03-23 10:20:55 +00:00
audio_record_jni.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
audio_track_jni.cc Force alignment of JVM called functions. 2018-03-23 10:20:55 +00:00
audio_track_jni.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
build_info.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
build_info.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ensure_initialized.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
ensure_initialized.h Moving src/webrtc into src/. 2017-09-15 04:25:06 +00:00
opensles_common.cc Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
opensles_common.h Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
opensles_player.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
opensles_player.h FineAudioBuffer now uses 16-bit audio samples to match the AudioDeviceBuffer. 2018-04-19 12:20:28 +00:00
opensles_recorder.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
opensles_recorder.h FineAudioBuffer now uses 16-bit audio samples to match the AudioDeviceBuffer. 2018-04-19 12:20:28 +00:00