| 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 11 matching lines...) Expand all Loading... |
| 22 #include "webrtc/typedefs.h" | 22 #include "webrtc/typedefs.h" |
| 23 | 23 |
| 24 namespace webrtc { | 24 namespace webrtc { |
| 25 | 25 |
| 26 // forward declarations | 26 // forward declarations |
| 27 struct CodecInst; | 27 struct CodecInst; |
| 28 struct WebRtcRTPHeader; | 28 struct WebRtcRTPHeader; |
| 29 class AudioDecoder; | 29 class AudioDecoder; |
| 30 class AudioEncoder; | 30 class AudioEncoder; |
| 31 class AudioFrame; | 31 class AudioFrame; |
| 32 class RtcEventLog; | |
| 33 class RTPFragmentationHeader; | 32 class RTPFragmentationHeader; |
| 34 | 33 |
| 35 #define WEBRTC_10MS_PCM_AUDIO 960 // 16 bits super wideband 48 kHz | 34 #define WEBRTC_10MS_PCM_AUDIO 960 // 16 bits super wideband 48 kHz |
| 36 | 35 |
| 37 // Callback class used for sending data ready to be packetized | 36 // Callback class used for sending data ready to be packetized |
| 38 class AudioPacketizationCallback { | 37 class AudioPacketizationCallback { |
| 39 public: | 38 public: |
| 40 virtual ~AudioPacketizationCallback() {} | 39 virtual ~AudioPacketizationCallback() {} |
| 41 | 40 |
| 42 virtual int32_t SendData(FrameType frame_type, | 41 virtual int32_t SendData(FrameType frame_type, |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 const uint8_t eventFlags, // concealed voice flags | 75 const uint8_t eventFlags, // concealed voice flags |
| 77 const uint16_t delayMS) = 0; // average delay in ms | 76 const uint16_t delayMS) = 0; // average delay in ms |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 class AudioCodingModule { | 79 class AudioCodingModule { |
| 81 protected: | 80 protected: |
| 82 AudioCodingModule() {} | 81 AudioCodingModule() {} |
| 83 | 82 |
| 84 public: | 83 public: |
| 85 struct Config { | 84 struct Config { |
| 86 Config() | 85 Config() : id(0), neteq_config(), clock(Clock::GetRealTimeClock()) {} |
| 87 : id(0), | |
| 88 neteq_config(), | |
| 89 clock(Clock::GetRealTimeClock()), | |
| 90 event_log(nullptr) {} | |
| 91 | 86 |
| 92 int id; | 87 int id; |
| 93 NetEq::Config neteq_config; | 88 NetEq::Config neteq_config; |
| 94 Clock* clock; | 89 Clock* clock; |
| 95 RtcEventLog* event_log; | |
| 96 }; | 90 }; |
| 97 | 91 |
| 98 /////////////////////////////////////////////////////////////////////////// | 92 /////////////////////////////////////////////////////////////////////////// |
| 99 // Creation and destruction of a ACM. | 93 // Creation and destruction of a ACM. |
| 100 // | 94 // |
| 101 // The second method is used for testing where a simulated clock can be | 95 // The second method is used for testing where a simulated clock can be |
| 102 // injected into ACM. ACM will take the ownership of the object clock and | 96 // injected into ACM. ACM will take the ownership of the object clock and |
| 103 // delete it when destroyed. | 97 // delete it when destroyed. |
| 104 // | 98 // |
| 105 static AudioCodingModule* Create(int id); | 99 static AudioCodingModule* Create(int id); |
| (...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; | 1005 virtual std::vector<uint16_t> GetNackList(int round_trip_time_ms) const = 0; |
| 1012 | 1006 |
| 1013 // Returns the timing statistics for calls to Get10MsAudio. | 1007 // Returns the timing statistics for calls to Get10MsAudio. |
| 1014 virtual void GetDecodingCallStatistics( | 1008 virtual void GetDecodingCallStatistics( |
| 1015 AudioDecodingCallStats* call_stats) const = 0; | 1009 AudioDecodingCallStats* call_stats) const = 0; |
| 1016 }; | 1010 }; |
| 1017 | 1011 |
| 1018 } // namespace webrtc | 1012 } // namespace webrtc |
| 1019 | 1013 |
| 1020 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ | 1014 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INTERFACE_AUDIO_CODING_MODULE_H_ |
| OLD | NEW |