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

Side by Side Diff: talk/app/webrtc/localaudiosource.cc

Issue 1181413004: Follow-up: Remove old DelayCorrection AEC config (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | talk/app/webrtc/localaudiosource_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met: 6 * modification, are permitted provided that the following conditions are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright notice, 8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer. 9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice, 10 * 2. Redistributions in binary form must reproduce the above copyright notice,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // This design relies on the fact that all the audio constraints are actually 46 // This design relies on the fact that all the audio constraints are actually
47 // "options", i.e. boolean-valued and always satisfiable. If the constraints 47 // "options", i.e. boolean-valued and always satisfiable. If the constraints
48 // are extended to include non-boolean values or actual format constraints, 48 // are extended to include non-boolean values or actual format constraints,
49 // a different algorithm will be required. 49 // a different algorithm will be required.
50 struct { 50 struct {
51 const char* name; 51 const char* name;
52 cricket::Settable<bool>& value; 52 cricket::Settable<bool>& value;
53 } key_to_value[] = { 53 } key_to_value[] = {
54 {MediaConstraintsInterface::kGoogEchoCancellation, 54 {MediaConstraintsInterface::kGoogEchoCancellation,
55 options->echo_cancellation}, 55 options->echo_cancellation},
56 // Both kExperimentalEchoCancellation (old) and
57 // kExtendedFilterEchoCancellation (new) translate to
58 // extended_filter_aec
59 // option being set. This is to manage the transition from the old to
60 // the
61 // new without breaking dependent code.
62 {MediaConstraintsInterface::kExperimentalEchoCancellation,
63 options->extended_filter_aec},
64 {MediaConstraintsInterface::kExtendedFilterEchoCancellation, 56 {MediaConstraintsInterface::kExtendedFilterEchoCancellation,
65 options->extended_filter_aec}, 57 options->extended_filter_aec},
66 {MediaConstraintsInterface::kDAEchoCancellation, 58 {MediaConstraintsInterface::kDAEchoCancellation,
67 options->delay_agnostic_aec}, 59 options->delay_agnostic_aec},
68 {MediaConstraintsInterface::kAutoGainControl, options->auto_gain_control}, 60 {MediaConstraintsInterface::kAutoGainControl, options->auto_gain_control},
69 {MediaConstraintsInterface::kExperimentalAutoGainControl, 61 {MediaConstraintsInterface::kExperimentalAutoGainControl,
70 options->experimental_agc}, 62 options->experimental_agc},
71 {MediaConstraintsInterface::kNoiseSuppression, 63 {MediaConstraintsInterface::kNoiseSuppression,
72 options->noise_suppression}, 64 options->noise_suppression},
73 {MediaConstraintsInterface::kExperimentalNoiseSuppression, 65 {MediaConstraintsInterface::kExperimentalNoiseSuppression,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // constraints. 104 // constraints.
113 FromConstraints(constraints->GetOptional(), &options_); 105 FromConstraints(constraints->GetOptional(), &options_);
114 106
115 cricket::AudioOptions mandatory_options; 107 cricket::AudioOptions mandatory_options;
116 FromConstraints(constraints->GetMandatory(), &mandatory_options); 108 FromConstraints(constraints->GetMandatory(), &mandatory_options);
117 options_.SetAll(mandatory_options); 109 options_.SetAll(mandatory_options);
118 source_state_ = kLive; 110 source_state_ = kLive;
119 } 111 }
120 112
121 } // namespace webrtc 113 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/localaudiosource_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698