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

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

Issue 2365653004: AudioCodingModule: Specify decoders using SdpAudioFormat (Closed)
Patch Set: Created 4 years, 2 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 504
505 // Registers an external decoder. The name is only used to provide information 505 // Registers an external decoder. The name is only used to provide information
506 // back to the caller about the decoder. Hence, the name is arbitrary, and may 506 // back to the caller about the decoder. Hence, the name is arbitrary, and may
507 // be empty. 507 // be empty.
508 virtual int RegisterExternalReceiveCodec(int rtp_payload_type, 508 virtual int RegisterExternalReceiveCodec(int rtp_payload_type,
509 AudioDecoder* external_decoder, 509 AudioDecoder* external_decoder,
510 int sample_rate_hz, 510 int sample_rate_hz,
511 int num_channels, 511 int num_channels,
512 const std::string& name) = 0; 512 const std::string& name) = 0;
513 513
514 // Registers a decoder for the given payload type. Returns true iff
ossu 2016/09/28 14:12:28 Place this one directly under the other RegisterRe
kwiberg-webrtc 2016/09/29 12:38:34 Done.
515 // successful.
516 virtual bool RegisterReceiveCodec(int rtp_payload_type,
517 const SdpAudioFormat& audio_format) = 0;
518
514 /////////////////////////////////////////////////////////////////////////// 519 ///////////////////////////////////////////////////////////////////////////
515 // int32_t UnregisterReceiveCodec() 520 // int32_t UnregisterReceiveCodec()
516 // Unregister the codec currently registered with a specific payload type 521 // Unregister the codec currently registered with a specific payload type
517 // from the list of possible receive codecs. 522 // from the list of possible receive codecs.
518 // 523 //
519 // Input: 524 // Input:
520 // -payload_type : The number representing the payload type to 525 // -payload_type : The number representing the payload type to
521 // unregister. 526 // unregister.
522 // 527 //
523 // Output: 528 // Output:
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 virtual std::vector<uint16_t> GetNackList( 799 virtual std::vector<uint16_t> GetNackList(
795 int64_t round_trip_time_ms) const = 0; 800 int64_t round_trip_time_ms) const = 0;
796 801
797 virtual void GetDecodingCallStatistics( 802 virtual void GetDecodingCallStatistics(
798 AudioDecodingCallStats* call_stats) const = 0; 803 AudioDecodingCallStats* call_stats) const = 0;
799 }; 804 };
800 805
801 } // namespace webrtc 806 } // namespace webrtc
802 807
803 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_ 808 #endif // WEBRTC_MODULES_AUDIO_CODING_INCLUDE_AUDIO_CODING_MODULE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698