Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: webrtc/modules/audio_coding/include/audio_coding_module.h

Issue 2686043006: WebRtcVoiceMediaChannel::AddRecvStream: Don't call SetRecPayloadType (Closed)
Patch Set: Discard packets when updating payload type map Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.
the sun 2017/03/14 20:07:00 nit: how about renaming the argument so that the c
kwiberg-webrtc 2017/03/16 10:24:12 payload_type_to_decoder_format_map? That's a mouth
489 virtual void SetReceiveCodecs(
490 const std::map<int, SdpAudioFormat>& codecs) = 0;
491
488 // Registers a decoder for the given payload type. Returns true iff 492 // Registers a decoder for the given payload type. Returns true iff
489 // successful. 493 // successful.
490 virtual bool RegisterReceiveCodec(int rtp_payload_type, 494 virtual bool RegisterReceiveCodec(int rtp_payload_type,
491 const SdpAudioFormat& audio_format) = 0; 495 const SdpAudioFormat& audio_format) = 0;
492 496
493 /////////////////////////////////////////////////////////////////////////// 497 ///////////////////////////////////////////////////////////////////////////
494 // int32_t RegisterReceiveCodec() 498 // int32_t RegisterReceiveCodec()
495 // Register possible decoders, can be called multiple times for 499 // Register possible decoders, can be called multiple times for
496 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED. 500 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED.
497 // 501 //
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
817 virtual std::vector<uint16_t> GetNackList( 821 virtual std::vector<uint16_t> GetNackList(
818 int64_t round_trip_time_ms) const = 0; 822 int64_t round_trip_time_ms) const = 0;
819 823
820 virtual void GetDecodingCallStatistics( 824 virtual void GetDecodingCallStatistics(
821 AudioDecodingCallStats* call_stats) const = 0; 825 AudioDecodingCallStats* call_stats) const = 0;
822 }; 826 };
823 827
824 } // namespace webrtc 828 } // namespace webrtc
825 829
826 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ 830 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698