Index: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h |
diff --git a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h |
index ad49a865e2556e7dd7f21ba09f8051dc88b33316..cc3e7e5a4721edb66d02de986ab90a5db286ac6d 100644 |
--- a/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h |
+++ b/webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h |
@@ -13,6 +13,7 @@ |
#include <memory> |
+#include "webrtc/api/audio_codecs/audio_format.h" |
#include "webrtc/base/buffer.h" |
#include "webrtc/base/constructormagic.h" |
#include "webrtc/modules/audio_coding/codecs/audio_encoder.h" |
@@ -34,8 +35,13 @@ class AudioEncoderG722 final : public AudioEncoder { |
explicit AudioEncoderG722(const Config& config); |
explicit AudioEncoderG722(const CodecInst& codec_inst); |
+ AudioEncoderG722(int payload_type, const SdpAudioFormat& format); |
~AudioEncoderG722() override; |
+ static constexpr const char* GetPayloadName() { return "G722"; } |
+ static rtc::Optional<AudioCodecInfo> QueryAudioEncoder( |
+ const SdpAudioFormat& format); |
+ |
int SampleRateHz() const override; |
size_t NumChannels() const override; |
int RtpTimestampRateHz() const override; |