OLD | NEW |
(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_WEBRTC_AUDIO_PROCESSOR_OPTIONS_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_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_WEBRTC_AUDIO_PROCESSOR_OPTIONS_H_ |
OLD | NEW |