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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 // Input: | 680 // Input: |
681 // -desired_freq_hz : the desired sampling frequency, in Hertz, of the | 681 // -desired_freq_hz : the desired sampling frequency, in Hertz, of the |
682 // output audio. If set to -1, the function returns | 682 // output audio. If set to -1, the function returns |
683 // the audio at the current sampling frequency. | 683 // the audio at the current sampling frequency. |
684 // | 684 // |
685 // Output: | 685 // Output: |
686 // -audio_frame : output audio frame which contains raw audio data | 686 // -audio_frame : output audio frame which contains raw audio data |
687 // and other relevant parameters, c.f. | 687 // and other relevant parameters, c.f. |
688 // module_common_types.h for the definition of | 688 // module_common_types.h for the definition of |
689 // AudioFrame. | 689 // AudioFrame. |
| 690 // -muted : if true, the sample data in audio_frame is not |
| 691 // populated, and must be interpreted as all zero. |
690 // | 692 // |
691 // Return value: | 693 // Return value: |
692 // -1 if the function fails, | 694 // -1 if the function fails, |
693 // 0 if the function succeeds. | 695 // 0 if the function succeeds. |
694 // | 696 // |
695 virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz, | 697 virtual int32_t PlayoutData10Ms(int32_t desired_freq_hz, |
696 AudioFrame* audio_frame) = 0; | 698 AudioFrame* audio_frame, |
| 699 bool* muted) = 0; |
| 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; |
697 | 708 |
698 /////////////////////////////////////////////////////////////////////////// | 709 /////////////////////////////////////////////////////////////////////////// |
699 // Codec specific | 710 // Codec specific |
700 // | 711 // |
701 | 712 |
702 /////////////////////////////////////////////////////////////////////////// | 713 /////////////////////////////////////////////////////////////////////////// |
703 // int SetOpusApplication() | 714 // int SetOpusApplication() |
704 // Sets the intended application if current send codec is Opus. Opus uses this | 715 // Sets the intended application if current send codec is Opus. Opus uses this |
705 // to optimize the encoding for applications like VOIP and music. Currently, | 716 // to optimize the encoding for applications like VOIP and music. Currently, |
706 // two modes are supported: kVoip and kAudio. | 717 // two modes are supported: kVoip and kAudio. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 virtual std::vector<uint16_t> GetNackList( | 810 virtual std::vector<uint16_t> GetNackList( |
800 int64_t round_trip_time_ms) const = 0; | 811 int64_t round_trip_time_ms) const = 0; |
801 | 812 |
802 virtual void GetDecodingCallStatistics( | 813 virtual void GetDecodingCallStatistics( |
803 AudioDecodingCallStats* call_stats) const = 0; | 814 AudioDecodingCallStats* call_stats) const = 0; |
804 }; | 815 }; |
805 | 816 |
806 } // namespace webrtc | 817 } // namespace webrtc |
807 | 818 |
808 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 819 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |