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

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

Issue 2802603003: Make GetConfig() part of the AudioProcessing interface (Closed)
Patch Set: Make the method non-pure 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
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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 // The memory for these objects is entirely managed internally. 552 // The memory for these objects is entirely managed internally.
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.
563 // TODO(henrik.lundin) Make this method pure virtual when downstream
564 // dependencies have been fixed.
565 virtual AudioProcessing::Config GetConfig() const;
566
562 enum Error { 567 enum Error {
563 // Fatal errors. 568 // Fatal errors.
564 kNoError = 0, 569 kNoError = 0,
565 kUnspecifiedError = -1, 570 kUnspecifiedError = -1,
566 kCreationFailedError = -2, 571 kCreationFailedError = -2,
567 kUnsupportedComponentError = -3, 572 kUnsupportedComponentError = -3,
568 kUnsupportedFunctionError = -4, 573 kUnsupportedFunctionError = -4,
569 kNullPointerError = -5, 574 kNullPointerError = -5,
570 kBadParameterError = -6, 575 kBadParameterError = -6,
571 kBadSampleRateError = -7, 576 kBadSampleRateError = -7,
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 // This does not impact the size of frames passed to |ProcessStream()|. 1076 // This does not impact the size of frames passed to |ProcessStream()|.
1072 virtual int set_frame_size_ms(int size) = 0; 1077 virtual int set_frame_size_ms(int size) = 0;
1073 virtual int frame_size_ms() const = 0; 1078 virtual int frame_size_ms() const = 0;
1074 1079
1075 protected: 1080 protected:
1076 virtual ~VoiceDetection() {} 1081 virtual ~VoiceDetection() {}
1077 }; 1082 };
1078 } // namespace webrtc 1083 } // namespace webrtc
1079 1084
1080 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_ 1085 #endif // WEBRTC_MODULES_AUDIO_PROCESSING_INCLUDE_AUDIO_PROCESSING_H_
OLDNEW
« no previous file with comments | « webrtc/modules/audio_processing/audio_processing_impl.h ('k') | webrtc/modules/audio_processing/include/audio_processing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698