Re-land: "Use an explicit identifier in Config"
This let's us use them to configure them when using WebRTC as an external library. One use case where this is necessary is in the Android OS. Original CL: https://codereview.webrtc.org/1538643004/ TBR=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1589573004 Cr-Commit-Position: refs/heads/master@{#11248}
This commit is contained in:
@ -65,6 +65,7 @@ class VoiceDetection;
|
||||
struct ExtendedFilter {
|
||||
ExtendedFilter() : enabled(false) {}
|
||||
explicit ExtendedFilter(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kExtendedFilter;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
@ -76,6 +77,7 @@ struct ExtendedFilter {
|
||||
struct DelayAgnostic {
|
||||
DelayAgnostic() : enabled(false) {}
|
||||
explicit DelayAgnostic(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kDelayAgnostic;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
@ -96,6 +98,7 @@ struct ExperimentalAgc {
|
||||
: enabled(enabled), startup_min_volume(kAgcStartupMinVolume) {}
|
||||
ExperimentalAgc(bool enabled, int startup_min_volume)
|
||||
: enabled(enabled), startup_min_volume(startup_min_volume) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kExperimentalAgc;
|
||||
bool enabled;
|
||||
int startup_min_volume;
|
||||
};
|
||||
@ -105,6 +108,7 @@ struct ExperimentalAgc {
|
||||
struct ExperimentalNs {
|
||||
ExperimentalNs() : enabled(false) {}
|
||||
explicit ExperimentalNs(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kExperimentalNs;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
@ -127,6 +131,7 @@ struct Beamforming {
|
||||
: enabled(enabled),
|
||||
array_geometry(array_geometry),
|
||||
target_direction(target_direction) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kBeamforming;
|
||||
const bool enabled;
|
||||
const std::vector<Point> array_geometry;
|
||||
const SphericalPointf target_direction;
|
||||
@ -141,6 +146,7 @@ struct Beamforming {
|
||||
struct Intelligibility {
|
||||
Intelligibility() : enabled(false) {}
|
||||
explicit Intelligibility(bool enabled) : enabled(enabled) {}
|
||||
static const ConfigOptionID identifier = ConfigOptionID::kIntelligibility;
|
||||
bool enabled;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user