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

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

Issue 54383003: Added an "enable-audio-processor" flag and WebRtcAudioProcessor class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added one comment. Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_STREAM_AUDIO_PROCESSOR_OPTIONS_H_
7
8 #include <string>
9
10 namespace webrtc {
11
12 class AudioFrame;
13 class AudioProcessing;
14 class MediaConstraintsInterface;
15
16 }
17
18 namespace content {
19
20 using webrtc::AudioProcessing;
21 using webrtc::MediaConstraintsInterface;
22
23 // Gets the property named by |key| from the |constraints|.
24 // Returns true if the key is found and has a valid boolean value; Otherwise
25 // false.
26 bool GetPropertyFromConstraints(
27 const MediaConstraintsInterface* constraints,
28 const std::string& key);
29
30 // Enables the echo cancellation in |audio_processing|.
31 void EnableEchoCancellation(AudioProcessing* audio_processing);
32
33 // Enables the noise suppression in |audio_processing|.
34 void EnableNoiseSuppression(AudioProcessing* audio_processing);
35
36 // Enables the high pass filter in |audio_processing|.
37 void EnableHighPassFilter(AudioProcessing* audio_processing);
38
39 // Enables the typing detection in |audio_processing|.
40 void EnableTypingDetection(AudioProcessing* audio_processing);
41
42 // Enables the experimental echo cancellation in |audio_processing|.
43 void EnableExperimentalEchoCancellation(AudioProcessing* audio_processing);
44
45 // Starts the echo cancellation dump in |audio_processing|.
46 void StartAecDump(AudioProcessing* audio_processing);
47
48 // Stops the echo cancellation dump in |audio_processing|.
49 void StopAecDump(AudioProcessing* audio_processing);
50
51 } // namespace content
52
53 #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