webrtc/modules/audio_device
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
..
android Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
dummy Move file_wrapper.h to rtc_base/system/ 2018-03-23 11:17:15 +00:00
include AudioTransport: Remove PushCaptureData() method 2018-04-04 08:04:09 +00:00
ios Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
linux Remove unused members from AudioDeviceBuffer 2018-01-16 10:20:32 +00:00
mac Remove unused members from AudioDeviceBuffer 2018-01-16 10:20:32 +00:00
win Lowercase windows includes in win audio device. 2018-03-27 05:00:40 +00:00
audio_device_buffer.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
audio_device_buffer.h Delete unneeded includes of wav_file.h and file_wrapper.h. 2018-03-20 15:59:27 +00:00
audio_device_config.h Don't build windows core audio if using dummy file devices. 2017-10-27 12:53:34 +00:00
audio_device_data_observer.cc AudioTransport: Remove PushCaptureData() method 2018-04-04 08:04:09 +00:00
audio_device_generic.cc Removes Set/GetLoudspeakerStatus APIs from the ADM. 2017-11-16 19:44:24 +00:00
audio_device_generic.h Removes usage of AGC APIs in the ADM. 2017-12-13 16:32:21 +00:00
audio_device_impl.cc Ensures that an ADM can be created when rtc_include_pulse_audio is set to false 2018-04-09 12:09:29 +00:00
audio_device_impl.h Removes usage of AGC APIs in the ADM. 2017-12-13 16:32:21 +00:00
audio_device_unittest.cc Minor improvements in ADM unittest for Windows. 2018-03-20 11:57:35 +00:00
BUILD.gn Remove dependencies on modules:module_api from AudioProcessing. 2018-04-12 22:05:27 +00:00
DEPS Fixing WebRTC after moving from src/webrtc to src/ 2017-09-15 05:02:56 +00:00
fine_audio_buffer_unittest.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
fine_audio_buffer.cc Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
fine_audio_buffer.h Adds stereo support to FineAudioBuffer for mobile platforms. 2018-04-24 11:58:54 +00:00
mock_audio_device_buffer.h Remove unused members from AudioDeviceBuffer 2018-01-16 10:20:32 +00:00
OWNERS