Reland Remove the deprecated EncodeInternal interface from AudioEncoder
Remove the deprecated EncodeInternal interface from AudioEncoder Also hid MaxEncodedBytes by making it private. It will get removed as soon as subclasses have had time to remove their overrides. BUG=webrtc:5591 Review URL: https://codereview.webrtc.org/1881003003 Cr-Commit-Position: refs/heads/master@{#12409}
This commit is contained in:
@ -60,10 +60,6 @@ AudioEncoderG722::AudioEncoderG722(const CodecInst& codec_inst)
|
||||
|
||||
AudioEncoderG722::~AudioEncoderG722() = default;
|
||||
|
||||
size_t AudioEncoderG722::MaxEncodedBytes() const {
|
||||
return SamplesPerChannel() / 2 * num_channels_;
|
||||
}
|
||||
|
||||
int AudioEncoderG722::SampleRateHz() const {
|
||||
return kSampleRateHz;
|
||||
}
|
||||
|
||||
@ -35,7 +35,6 @@ class AudioEncoderG722 final : public AudioEncoder {
|
||||
explicit AudioEncoderG722(const CodecInst& codec_inst);
|
||||
~AudioEncoderG722() override;
|
||||
|
||||
size_t MaxEncodedBytes() const override;
|
||||
int SampleRateHz() const override;
|
||||
size_t NumChannels() const override;
|
||||
int RtpTimestampRateHz() const override;
|
||||
@ -44,7 +43,7 @@ class AudioEncoderG722 final : public AudioEncoder {
|
||||
int GetTargetBitrate() const override;
|
||||
void Reset() override;
|
||||
|
||||
protected:
|
||||
protected:
|
||||
EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
|
||||
rtc::ArrayView<const int16_t> audio,
|
||||
rtc::Buffer* encoded) override;
|
||||
|
||||
Reference in New Issue
Block a user