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

Side by Side Diff: content/renderer/media/media_stream_audio_processor_options.h

Issue 1891953003: Fix selection of "no audio processing" mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | content/renderer/media/media_stream_audio_processor_options.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 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/files/file.h" 10 #include "base/files/file.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 // Gets the property of echo cancellation defined in |constraints_|. The 77 // Gets the property of echo cancellation defined in |constraints_|. The
78 // returned value depends on a combination of |effects_|, |kEchoCancellation| 78 // returned value depends on a combination of |effects_|, |kEchoCancellation|
79 // and |kGoogEchoCancellation| in |constraints_|. 79 // and |kGoogEchoCancellation| in |constraints_|.
80 bool GetEchoCancellationProperty() const; 80 bool GetEchoCancellationProperty() const;
81 81
82 // Returns true if all the mandatory constraints in |constraints_| are valid; 82 // Returns true if all the mandatory constraints in |constraints_| are valid;
83 // Otherwise return false. 83 // Otherwise return false.
84 bool IsValid() const; 84 bool IsValid() const;
85 85
86 // Exposed for testing.
87 bool default_audio_processing_constraint_value() const {
tommi (sloooow) - chröme 2016/04/15 13:46:35 prefer GetDefaultAudioProcessingConstraintValueFor
88 return default_audio_processing_constraint_value_;
89 }
90
86 private: 91 private:
87 // Gets the default value of constraint named by |key| in |constraints|. 92 // Gets the default value of constraint named by |key| in |constraints|.
88 bool GetDefaultValueForConstraint(const std::string& key) const; 93 bool GetDefaultValueForConstraint(const std::string& key) const;
89 const blink::WebMediaConstraints constraints_; 94 const blink::WebMediaConstraints constraints_;
90 const int effects_; 95 const int effects_;
91 bool default_audio_processing_constraint_value_; 96 bool default_audio_processing_constraint_value_;
92 }; 97 };
93 98
94 // A helper class to log echo information in general and Echo Cancellation 99 // A helper class to log echo information in general and Echo Cancellation
95 // quality in particular. 100 // quality in particular.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 144
140 // Returns the array geometry from the media constraints if existing and 145 // Returns the array geometry from the media constraints if existing and
141 // otherwise that provided by the input device. 146 // otherwise that provided by the input device.
142 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( 147 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints(
143 const MediaAudioConstraints& audio_constraints, 148 const MediaAudioConstraints& audio_constraints,
144 const MediaStreamDevice::AudioDeviceParameters& input_params); 149 const MediaStreamDevice::AudioDeviceParameters& input_params);
145 150
146 } // namespace content 151 } // namespace content
147 152
148 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 153 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698