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

Side by Side Diff: webrtc/modules/audio_processing/include/audio_processing.h

Issue 2796223004: Make AudioProcessing::GetConfig() pure virtual (Closed)
Patch Set: Created 3 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 | webrtc/modules/audio_processing/include/audio_processing.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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 virtual EchoCancellation* echo_cancellation() const = 0; 553 virtual EchoCancellation* echo_cancellation() const = 0;
554 virtual EchoControlMobile* echo_control_mobile() const = 0; 554 virtual EchoControlMobile* echo_control_mobile() const = 0;
555 virtual GainControl* gain_control() const = 0; 555 virtual GainControl* gain_control() const = 0;
556 // TODO(peah): Deprecate this API call. 556 // TODO(peah): Deprecate this API call.
557 virtual HighPassFilter* high_pass_filter() const = 0; 557 virtual HighPassFilter* high_pass_filter() const = 0;
558 virtual LevelEstimator* level_estimator() const = 0; 558 virtual LevelEstimator* level_estimator() const = 0;
559 virtual NoiseSuppression* noise_suppression() const = 0; 559 virtual NoiseSuppression* noise_suppression() const = 0;
560 virtual VoiceDetection* voice_detection() const = 0; 560 virtual VoiceDetection* voice_detection() const = 0;
561 561
562 // Returns the last applied configuration. 562 // Returns the last applied configuration.
563 // TODO(henrik.lundin) Make this method pure virtual when downstream 563 virtual AudioProcessing::Config GetConfig() const = 0;
564 // dependencies have been fixed.
565 virtual AudioProcessing::Config GetConfig() const;
566 564
567 enum Error { 565 enum Error {
568 // Fatal errors. 566 // Fatal errors.
569 kNoError = 0, 567 kNoError = 0,
570 kUnspecifiedError = -1, 568 kUnspecifiedError = -1,
571 kCreationFailedError = -2, 569 kCreationFailedError = -2,
572 kUnsupportedComponentError = -3, 570 kUnsupportedComponentError = -3,
573 kUnsupportedFunctionError = -4, 571 kUnsupportedFunctionError = -4,
574 kNullPointerError = -5, 572 kNullPointerError = -5,
575 kBadParameterError = -6, 573 kBadParameterError = -6,
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 // This does not impact the size of frames passed to |ProcessStream()|. 1074 // This does not impact the size of frames passed to |ProcessStream()|.
1077 virtual int set_frame_size_ms(int size) = 0; 1075 virtual int set_frame_size_ms(int size) = 0;
1078 virtual int frame_size_ms() const = 0; 1076 virtual int frame_size_ms() const = 0;
1079 1077
1080 protected: 1078 protected:
1081 virtual ~VoiceDetection() {} 1079 virtual ~VoiceDetection() {}
1082 }; 1080 };
1083 } // namespace webrtc 1081 } // namespace webrtc
1084 1082
1085 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1083 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/audio_processing/include/audio_processing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698