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 687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 // -network_statistics : a structure that contains network statistics. | 698 // -network_statistics : a structure that contains network statistics. |
699 // | 699 // |
700 // Return value: | 700 // Return value: |
701 // -1 if failed to set the network statistics, | 701 // -1 if failed to set the network statistics, |
702 // 0 if statistics are set successfully. | 702 // 0 if statistics are set successfully. |
703 // | 703 // |
704 virtual int32_t GetNetworkStatistics( | 704 virtual int32_t GetNetworkStatistics( |
705 NetworkStatistics* network_statistics) = 0; | 705 NetworkStatistics* network_statistics) = 0; |
706 | 706 |
707 // | 707 // |
708 // Set an initial delay for playout. | |
709 // An initial delay yields ACM playout silence until equivalent of |delay_ms| | |
710 // audio payload is accumulated in NetEq jitter. Thereafter, ACM pulls audio | |
711 // from NetEq in its regular fashion, and the given delay is maintained | |
712 // through out the call, unless channel conditions yield to a higher jitter | |
713 // buffer delay. | |
714 // | |
715 // Input: | |
716 // -delay_ms : delay in milliseconds. | |
717 // | |
718 // Return values: | |
719 // -1 if failed to set the delay. | |
720 // 0 if delay is set successfully. | |
721 // | |
722 virtual int SetInitialPlayoutDelay(int delay_ms) = 0; | |
723 | |
724 // | |
725 // Enable NACK and set the maximum size of the NACK list. If NACK is already | 708 // Enable NACK and set the maximum size of the NACK list. If NACK is already |
726 // enable then the maximum NACK list size is modified accordingly. | 709 // enable then the maximum NACK list size is modified accordingly. |
727 // | 710 // |
728 // If the sequence number of last received packet is N, the sequence numbers | 711 // If the sequence number of last received packet is N, the sequence numbers |
729 // of NACK list are in the range of [N - |max_nack_list_size|, N). | 712 // of NACK list are in the range of [N - |max_nack_list_size|, N). |
730 // | 713 // |
731 // |max_nack_list_size| should be positive (none zero) and less than or | 714 // |max_nack_list_size| should be positive (none zero) and less than or |
732 // equal to |Nack::kNackListSizeLimit|. Otherwise, No change is applied and -1 | 715 // equal to |Nack::kNackListSizeLimit|. Otherwise, No change is applied and -1 |
733 // is returned. 0 is returned at success. | 716 // is returned. 0 is returned at success. |
734 // | 717 // |
(...skipping 14 matching lines...) Expand all Loading... |
749 virtual std::vector<uint16_t> GetNackList( | 732 virtual std::vector<uint16_t> GetNackList( |
750 int64_t round_trip_time_ms) const = 0; | 733 int64_t round_trip_time_ms) const = 0; |
751 | 734 |
752 virtual void GetDecodingCallStatistics( | 735 virtual void GetDecodingCallStatistics( |
753 AudioDecodingCallStats* call_stats) const = 0; | 736 AudioDecodingCallStats* call_stats) const = 0; |
754 }; | 737 }; |
755 | 738 |
756 } // namespace webrtc | 739 } // namespace webrtc |
757 | 740 |
758 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_ | 741 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |