Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(883)

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl.h

Issue 1563493005: Make Beamforming dynamically settable for Android platform builds (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Re-add num_out_channels > 1 restriction Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/audio_processing/audio_processing_impl.h
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.h b/webrtc/modules/audio_processing/audio_processing_impl.h
index 3506ac4dc0c5b071f7e7b0e6de0ff8c3d3807ff8..39f87acd1bbe8aa1a5ec20ba46cba9d8d610903a 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl.h
+++ b/webrtc/modules/audio_processing/audio_processing_impl.h
@@ -267,28 +267,22 @@ class AudioProcessingImpl : public AudioProcessing {
// APM constants.
const struct ApmConstants {
ApmConstants(int agc_startup_min_volume,
- const std::vector<Point> array_geometry,
- SphericalPointf target_direction,
bool use_new_agc,
- bool intelligibility_enabled,
- bool beamformer_enabled)
+ bool intelligibility_enabled)
: // Format of processing streams at input/output call sites.
agc_startup_min_volume(agc_startup_min_volume),
- array_geometry(array_geometry),
- target_direction(target_direction),
use_new_agc(use_new_agc),
- intelligibility_enabled(intelligibility_enabled),
- beamformer_enabled(beamformer_enabled) {}
+ intelligibility_enabled(intelligibility_enabled) {}
int agc_startup_min_volume;
- std::vector<Point> array_geometry;
- SphericalPointf target_direction;
bool use_new_agc;
bool intelligibility_enabled;
- bool beamformer_enabled;
} constants_;
struct ApmCaptureState {
- ApmCaptureState(bool transient_suppressor_enabled)
+ ApmCaptureState(bool transient_suppressor_enabled,
+ bool beamformer_enabled,
+ const std::vector<Point>& array_geometry,
+ SphericalPointf target_direction)
: aec_system_delay_jumps(-1),
delay_offset_ms(0),
was_stream_delay_set(false),
@@ -298,6 +292,9 @@ class AudioProcessingImpl : public AudioProcessing {
output_will_be_muted(false),
key_pressed(false),
transient_suppressor_enabled(transient_suppressor_enabled),
+ beamformer_enabled(beamformer_enabled),
+ array_geometry(array_geometry),
+ target_direction(target_direction),
fwd_proc_format(kSampleRate16kHz),
split_rate(kSampleRate16kHz) {}
int aec_system_delay_jumps;
@@ -309,6 +306,9 @@ class AudioProcessingImpl : public AudioProcessing {
bool output_will_be_muted;
bool key_pressed;
bool transient_suppressor_enabled;
+ bool beamformer_enabled;
+ std::vector<Point> array_geometry;
+ SphericalPointf target_direction;
rtc::scoped_ptr<AudioBuffer> capture_audio;
// Only the rate and samples fields of fwd_proc_format_ are used because the
// forward processing number of channels is mutable and is tracked by the
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/audio_processing_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698