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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 | 478 |
479 /////////////////////////////////////////////////////////////////////////// | 479 /////////////////////////////////////////////////////////////////////////// |
480 // int32_t PlayoutFrequency() | 480 // int32_t PlayoutFrequency() |
481 // Get sampling frequency of audio played out. | 481 // Get sampling frequency of audio played out. |
482 // | 482 // |
483 // Return value: | 483 // Return value: |
484 // the sampling frequency in Hertz. | 484 // the sampling frequency in Hertz. |
485 // | 485 // |
486 virtual int32_t PlayoutFrequency() const = 0; | 486 virtual int32_t PlayoutFrequency() const = 0; |
487 | 487 |
488 // Replace any existing decoders with the given payload type -> decoder map. | |
489 virtual void SetReceiveCodecs( | |
490 const std::map<int, SdpAudioFormat>& codecs) = 0; | |
491 | |
492 // Registers a decoder for the given payload type. Returns true iff | 488 // Registers a decoder for the given payload type. Returns true iff |
493 // successful. | 489 // successful. |
494 virtual bool RegisterReceiveCodec(int rtp_payload_type, | 490 virtual bool RegisterReceiveCodec(int rtp_payload_type, |
495 const SdpAudioFormat& audio_format) = 0; | 491 const SdpAudioFormat& audio_format) = 0; |
496 | 492 |
497 /////////////////////////////////////////////////////////////////////////// | 493 /////////////////////////////////////////////////////////////////////////// |
498 // int32_t RegisterReceiveCodec() | 494 // int32_t RegisterReceiveCodec() |
499 // Register possible decoders, can be called multiple times for | 495 // Register possible decoders, can be called multiple times for |
500 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED. | 496 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED. |
501 // | 497 // |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
821 virtual std::vector<uint16_t> GetNackList( | 817 virtual std::vector<uint16_t> GetNackList( |
822 int64_t round_trip_time_ms) const = 0; | 818 int64_t round_trip_time_ms) const = 0; |
823 | 819 |
824 virtual void GetDecodingCallStatistics( | 820 virtual void GetDecodingCallStatistics( |
825 AudioDecodingCallStats* call_stats) const = 0; | 821 AudioDecodingCallStats* call_stats) const = 0; |
826 }; | 822 }; |
827 | 823 |
828 } // namespace webrtc | 824 } // namespace webrtc |
829 | 825 |
830 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ | 826 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ |
OLD | NEW |