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

Side by Side Diff: modules/audio_coding/include/audio_coding_module.h

Issue 3019543002: Remove various IDs (Closed)
Patch Set: rebase+build error Created 3 years, 2 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 class AudioCodingModule { 63 class AudioCodingModule {
64 protected: 64 protected:
65 AudioCodingModule() {} 65 AudioCodingModule() {}
66 66
67 public: 67 public:
68 struct Config { 68 struct Config {
69 Config(); 69 Config();
70 Config(const Config&); 70 Config(const Config&);
71 ~Config(); 71 ~Config();
72 72
73 int id;
74 NetEq::Config neteq_config; 73 NetEq::Config neteq_config;
75 Clock* clock; 74 Clock* clock;
76 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory; 75 rtc::scoped_refptr<AudioDecoderFactory> decoder_factory;
77 }; 76 };
78 77
79 /////////////////////////////////////////////////////////////////////////// 78 ///////////////////////////////////////////////////////////////////////////
80 // Creation and destruction of a ACM. 79 // Creation and destruction of a ACM.
81 // 80 //
82 // The second method is used for testing where a simulated clock can be 81 // The second method is used for testing where a simulated clock can be
83 // injected into ACM. ACM will take the ownership of the object clock and 82 // injected into ACM. ACM will take the ownership of the object clock and
84 // delete it when destroyed. 83 // delete it when destroyed.
85 // 84 //
86 static AudioCodingModule* Create(int id); 85 // TODO(solenberg): Remove once downstream projects are updated.
87 static AudioCodingModule* Create(int id, Clock* clock); 86 RTC_DEPRECATED static AudioCodingModule* Create(int id);
87 static AudioCodingModule* Create();
88 static AudioCodingModule* Create(Clock* clock);
88 static AudioCodingModule* Create(const Config& config); 89 static AudioCodingModule* Create(const Config& config);
89 virtual ~AudioCodingModule() = default; 90 virtual ~AudioCodingModule() = default;
90 91
91 /////////////////////////////////////////////////////////////////////////// 92 ///////////////////////////////////////////////////////////////////////////
92 // Utility functions 93 // Utility functions
93 // 94 //
94 95
95 /////////////////////////////////////////////////////////////////////////// 96 ///////////////////////////////////////////////////////////////////////////
96 // uint8_t NumberOfCodecs() 97 // uint8_t NumberOfCodecs()
97 // Returns number of supported codecs. 98 // Returns number of supported codecs.
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 824
824 virtual void GetDecodingCallStatistics( 825 virtual void GetDecodingCallStatistics(
825 AudioDecodingCallStats* call_stats) const = 0; 826 AudioDecodingCallStats* call_stats) const = 0;
826 827
827 virtual ANAStats GetANAStats() const = 0; 828 virtual ANAStats GetANAStats() const = 0;
828 }; 829 };
829 830
830 } // namespace webrtc 831 } // namespace webrtc
831 832
832 #endif // MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ 833 #endif // MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW
« no previous file with comments | « modules/audio_coding/acm2/audio_coding_module_unittest.cc ('k') | modules/audio_coding/test/APITest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698