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

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

Issue 2554823002: Change to use the new API in the audio processing module for enabling the high-pass filter effect (Closed)
Patch Set: Created 4 years 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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 DISALLOW_COPY_AND_ASSIGN(EchoInformation); 134 DISALLOW_COPY_AND_ASSIGN(EchoInformation);
135 }; 135 };
136 136
137 // Enables the echo cancellation in |audio_processing|. 137 // Enables the echo cancellation in |audio_processing|.
138 void EnableEchoCancellation(AudioProcessing* audio_processing); 138 void EnableEchoCancellation(AudioProcessing* audio_processing);
139 139
140 // Enables the noise suppression in |audio_processing|. 140 // Enables the noise suppression in |audio_processing|.
141 void EnableNoiseSuppression(AudioProcessing* audio_processing, 141 void EnableNoiseSuppression(AudioProcessing* audio_processing,
142 webrtc::NoiseSuppression::Level ns_level); 142 webrtc::NoiseSuppression::Level ns_level);
143 143
144 // Enables the high pass filter in |audio_processing|.
145 void EnableHighPassFilter(AudioProcessing* audio_processing);
146
147 // Enables the typing detection in |audio_processing|. 144 // Enables the typing detection in |audio_processing|.
148 void EnableTypingDetection(AudioProcessing* audio_processing, 145 void EnableTypingDetection(AudioProcessing* audio_processing,
149 webrtc::TypingDetection* typing_detector); 146 webrtc::TypingDetection* typing_detector);
150 147
151 // Starts the echo cancellation dump in |audio_processing|. 148 // Starts the echo cancellation dump in |audio_processing|.
152 void StartEchoCancellationDump(AudioProcessing* audio_processing, 149 void StartEchoCancellationDump(AudioProcessing* audio_processing,
153 base::File aec_dump_file); 150 base::File aec_dump_file);
154 151
155 // Stops the echo cancellation dump in |audio_processing|. 152 // Stops the echo cancellation dump in |audio_processing|.
156 // This method has no impact if echo cancellation dump has not been started on 153 // This method has no impact if echo cancellation dump has not been started on
157 // |audio_processing|. 154 // |audio_processing|.
158 void StopEchoCancellationDump(AudioProcessing* audio_processing); 155 void StopEchoCancellationDump(AudioProcessing* audio_processing);
159 156
160 void EnableAutomaticGainControl(AudioProcessing* audio_processing); 157 void EnableAutomaticGainControl(AudioProcessing* audio_processing);
161 158
162 void GetAudioProcessingStats( 159 void GetAudioProcessingStats(
163 AudioProcessing* audio_processing, 160 AudioProcessing* audio_processing,
164 webrtc::AudioProcessorInterface::AudioProcessorStats* stats); 161 webrtc::AudioProcessorInterface::AudioProcessorStats* stats);
165 162
166 // Returns the array geometry from the media constraints if existing and 163 // Returns the array geometry from the media constraints if existing and
167 // otherwise that provided by the input device. 164 // otherwise that provided by the input device.
168 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints( 165 CONTENT_EXPORT std::vector<webrtc::Point> GetArrayGeometryPreferringConstraints(
169 const MediaAudioConstraints& audio_constraints, 166 const MediaAudioConstraints& audio_constraints,
170 const MediaStreamDevice::AudioDeviceParameters& input_params); 167 const MediaStreamDevice::AudioDeviceParameters& input_params);
171 168
172 } // namespace content 169 } // namespace content
173 170
174 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_ 171 #endif // CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_processor.cc ('k') | content/renderer/media/media_stream_audio_processor_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698