| OLD | NEW |
| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 static const char kGoogHighpassFilter[]; | 45 static const char kGoogHighpassFilter[]; |
| 46 static const char kGoogTypingNoiseDetection[]; | 46 static const char kGoogTypingNoiseDetection[]; |
| 47 static const char kGoogAudioMirroring[]; | 47 static const char kGoogAudioMirroring[]; |
| 48 | 48 |
| 49 // Merge |options| with |kDefaultAudioConstraints|. For any key which | 49 // Merge |options| with |kDefaultAudioConstraints|. For any key which |
| 50 // exists in both, the value from |options| is maintained. | 50 // exists in both, the value from |options| is maintained. |
| 51 // New values from |kDefaultAudioConstraints| will | 51 // New values from |kDefaultAudioConstraints| will |
| 52 // be added. | 52 // be added. |
| 53 // TODO(hta): Switch to an interface without "cricket::" when webrtc has one. | 53 // TODO(hta): Switch to an interface without "cricket::" when webrtc has one. |
| 54 | 54 |
| 55 static void ApplyFixedAudioConstraints(cricket::AudioOptions* options); | |
| 56 | 55 |
| 57 // |effects| is the bitmasks telling whether certain platform | 56 // |effects| is the bitmasks telling whether certain platform |
| 58 // hardware audio effects are enabled, like hardware echo cancellation. If | 57 // hardware audio effects are enabled, like hardware echo cancellation. If |
| 59 // some hardware effect is enabled, the corresponding software audio | 58 // some hardware effect is enabled, the corresponding software audio |
| 60 // processing will be disabled. | 59 // processing will be disabled. |
| 61 MediaAudioConstraints(const blink::WebMediaConstraints& constraints, | 60 MediaAudioConstraints(const blink::WebMediaConstraints& constraints, |
| 62 int effects); | 61 int effects); |
| 63 virtual ~MediaAudioConstraints(); | 62 virtual ~MediaAudioConstraints(); |
| 64 | 63 |
| 65 bool GetGoogAudioMirroring() const; | 64 bool GetGoogAudioMirroring() const; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 165 |
| 167 // Returns the array geometry from the media constraints if existing and | 166 // Returns the array geometry from the media constraints if existing and |
| 168 // otherwise that provided by the input device. | 167 // otherwise that provided by the input device. |
| 169 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( | 168 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( |
| 170 const MediaAudioConstraints& audio_constraints, | 169 const MediaAudioConstraints& audio_constraints, |
| 171 const MediaStreamDevice::AudioDeviceParameters& input_params); | 170 const MediaStreamDevice::AudioDeviceParameters& input_params); |
| 172 | 171 |
| 173 } // namespace content | 172 } // namespace content |
| 174 | 173 |
| 175 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ | 174 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ |
| OLD | NEW |