Index: webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h |
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h b/webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h |
index 63639860f45715662c49ef2c9822569bbf356412..467caee9b2cd74102c9bab66adc8c83ac8c739c9 100644 |
--- a/webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h |
+++ b/webrtc/modules/audio_coding/codecs/ilbc/audio_encoder_ilbc.h |
@@ -11,6 +11,7 @@ |
#ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_AUDIO_ENCODER_ILBC_H_ |
#define WEBRTC_MODULES_AUDIO_CODING_CODECS_ILBC_AUDIO_ENCODER_ILBC_H_ |
+#include "webrtc/api/audio_codecs/audio_format.h" |
#include "webrtc/base/constructormagic.h" |
#include "webrtc/modules/audio_coding/codecs/audio_encoder.h" |
#include "webrtc/modules/audio_coding/codecs/ilbc/ilbc.h" |
@@ -32,8 +33,13 @@ class AudioEncoderIlbc final : public AudioEncoder { |
explicit AudioEncoderIlbc(const Config& config); |
explicit AudioEncoderIlbc(const CodecInst& codec_inst); |
+ AudioEncoderIlbc(int payload_type, const SdpAudioFormat& format); |
~AudioEncoderIlbc() override; |
+ static constexpr const char* GetPayloadName() { return "ilbc"; } |
+ static rtc::Optional<AudioCodecInfo> QueryAudioEncoder( |
+ const SdpAudioFormat& format); |
+ |
int SampleRateHz() const override; |
size_t NumChannels() const override; |
size_t Num10MsFramesInNextPacket() const override; |