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

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

Issue 2365653004: AudioCodingModule: Specify decoders using SdpAudioFormat (Closed)
Patch Set: rebase 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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 472
473 /////////////////////////////////////////////////////////////////////////// 473 ///////////////////////////////////////////////////////////////////////////
474 // int32_t PlayoutFrequency() 474 // int32_t PlayoutFrequency()
475 // Get sampling frequency of audio played out. 475 // Get sampling frequency of audio played out.
476 // 476 //
477 // Return value: 477 // Return value:
478 // the sampling frequency in Hertz. 478 // the sampling frequency in Hertz.
479 // 479 //
480 virtual int32_t PlayoutFrequency() const = 0; 480 virtual int32_t PlayoutFrequency() const = 0;
481 481
482 // Registers a decoder for the given payload type. Returns true iff
483 // successful.
484 virtual bool RegisterReceiveCodec(int rtp_payload_type,
485 const SdpAudioFormat& audio_format) = 0;
486
482 /////////////////////////////////////////////////////////////////////////// 487 ///////////////////////////////////////////////////////////////////////////
483 // int32_t RegisterReceiveCodec() 488 // int32_t RegisterReceiveCodec()
484 // Register possible decoders, can be called multiple times for 489 // Register possible decoders, can be called multiple times for
485 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED. 490 // codecs, CNG-NB, CNG-WB, CNG-SWB, AVT and RED.
486 // 491 //
487 // Input: 492 // Input:
488 // -receive_codec : parameters of the codec to be registered, c.f. 493 // -receive_codec : parameters of the codec to be registered, c.f.
489 // common_types.h for the definition of 494 // common_types.h for the definition of
490 // CodecInst. 495 // CodecInst.
491 // 496 //
(...skipping 302 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