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

Unified Diff: webrtc/modules/audio_coding/codecs/g722/audio_encoder_g722.h

Issue 2695243005: Injectable audio encoders: BuiltinAudioEncoderFactory (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
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..33900ffb6ad098f55273ea9f475c0302b52caaa7 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);
+ explicit AudioEncoderG722(int payload_type, const SdpAudioFormat& format);
~AudioEncoderG722() override;
+ static constexpr const char* GetPayloadName() { return "G722"; }
+ static rtc::Optional<AudioFormatInfo> QueryAudioFormat(
+ const SdpAudioFormat& format);
+
int SampleRateHz() const override;
size_t NumChannels() const override;
int RtpTimestampRateHz() const override;

Powered by Google App Engine
This is Rietveld 408576698