OLD | NEW |
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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 }; | 47 }; |
48 | 48 |
49 // Callback class used for reporting VAD decision | 49 // Callback class used for reporting VAD decision |
50 class ACMVADCallback { | 50 class ACMVADCallback { |
51 public: | 51 public: |
52 virtual ~ACMVADCallback() {} | 52 virtual ~ACMVADCallback() {} |
53 | 53 |
54 virtual int32_t InFrameType(FrameType frame_type) = 0; | 54 virtual int32_t InFrameType(FrameType frame_type) = 0; |
55 }; | 55 }; |
56 | 56 |
57 // Callback class used for reporting receiver statistics | |
58 class ACMVQMonCallback { | |
59 public: | |
60 virtual ~ACMVQMonCallback() {} | |
61 | |
62 virtual int32_t NetEqStatistics( | |
63 const int32_t id, // current ACM id | |
64 const uint16_t MIUsValid, // valid voice duration in ms | |
65 const uint16_t MIUsReplaced, // concealed voice duration in ms | |
66 const uint8_t eventFlags, // concealed voice flags | |
67 const uint16_t delayMS) = 0; // average delay in ms | |
68 }; | |
69 | |
70 class AudioCodingModule { | 57 class AudioCodingModule { |
71 protected: | 58 protected: |
72 AudioCodingModule() {} | 59 AudioCodingModule() {} |
73 | 60 |
74 public: | 61 public: |
75 struct Config { | 62 struct Config { |
76 Config() : id(0), neteq_config(), clock(Clock::GetRealTimeClock()) {} | 63 Config() : id(0), neteq_config(), clock(Clock::GetRealTimeClock()) {} |
77 | 64 |
78 int id; | 65 int id; |
79 NetEq::Config neteq_config; | 66 NetEq::Config neteq_config; |
(...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
970 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; | 957 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; |
971 | 958 |
972 // Returns the timing statistics for calls to Get10MsAudio. | 959 // Returns the timing statistics for calls to Get10MsAudio. |
973 virtual void GetDecodingCallStatistics( | 960 virtual void GetDecodingCallStatistics( |
974 AudioDecodingCallStats* call_stats) const = 0; | 961 AudioDecodingCallStats* call_stats) const = 0; |
975 }; | 962 }; |
976 | 963 |
977 } // namespace webrtc | 964 } // namespace webrtc |
978 | 965 |
979 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ | 966 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |