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 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 // populated, and must be interpreted as all zero. | 691 // populated, and must be interpreted as all zero. |
692 // | 692 // |
693 // Return value: | 693 // Return value: |
694 // -1 if the function fails, | 694 // -1 if the function fails, |
695 // 0 if the function succeeds. | 695 // 0 if the function succeeds. |
696 // | 696 // |
697 virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz, | 697 virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz, |
698 AudioFrame* audio_frame, | 698 AudioFrame* audio_frame, |
699 bool* muted) = 0; | 699 bool* muted) = 0; |
700 | 700 |
701 ///////////////////////////////////////////////////////////////////////////// | |
702 // Same as above, but without the muted parameter. This methods should not be | |
703 // used if enable_fast_accelerate was set to true in NetEq::Config. | |
704 // TODO(henrik.lundin) Remove this method when downstream dependencies are | |
705 // ready. | |
706 virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz, | |
707 AudioFrame* audio_frame) = 0; | |
708 | |
709 /////////////////////////////////////////////////////////////////////////// | 701 /////////////////////////////////////////////////////////////////////////// |
710 // Codec specific | 702 // Codec specific |
711 // | 703 // |
712 | 704 |
713 /////////////////////////////////////////////////////////////////////////// | 705 /////////////////////////////////////////////////////////////////////////// |
714 // int SetOpusApplication() | 706 // int SetOpusApplication() |
715 // Sets the intended application if current send codec is Opus. Opus uses this | 707 // Sets the intended application if current send codec is Opus. Opus uses this |
716 // to optimize the encoding for applications like VOIP and music. Currently, | 708 // to optimize the encoding for applications like VOIP and music. Currently, |
717 // two modes are supported: kVoip and kAudio. | 709 // two modes are supported: kVoip and kAudio. |
718 // | 710 // |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 virtual std::vector<uint16_t> GetNackList( | 802 virtual std::vector<uint16_t> GetNackList( |
811 int64_t round_trip_time_ms) const = 0; | 803 int64_t round_trip_time_ms) const = 0; |
812 | 804 |
813 virtual void GetDecodingCallStatistics( | 805 virtual void GetDecodingCallStatistics( |
814 AudioDecodingCallStats* call_stats) const = 0; | 806 AudioDecodingCallStats* call_stats) const = 0; |
815 }; | 807 }; |
816 | 808 |
817 } // namespace webrtc | 809 } // namespace webrtc |
818 | 810 |
819 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 811 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |