| Index: webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h
|
| diff --git a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h
|
| index 644255b83549e2e45349afa86ab5ea6b4c3e26e5..5e2c9b2826b254163bfc982b46af08beb0c10da0 100644
|
| --- a/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h
|
| +++ b/webrtc/modules/audio_coding/codecs/red/audio_encoder_copy_red.h
|
| @@ -23,7 +23,7 @@ namespace webrtc {
|
| // underlying AudioEncoder object that performs the actual encodings. The
|
| // current class will gather the two latest encodings from the underlying codec
|
| // into one packet.
|
| -class AudioEncoderCopyRed : public AudioEncoder {
|
| +class AudioEncoderCopyRed final : public AudioEncoder {
|
| public:
|
| struct Config {
|
| public:
|
| @@ -36,19 +36,26 @@ class AudioEncoderCopyRed : public AudioEncoder {
|
|
|
| ~AudioEncoderCopyRed() override;
|
|
|
| + size_t MaxEncodedBytes() const override;
|
| int SampleRateHz() const override;
|
| int NumChannels() const override;
|
| - size_t MaxEncodedBytes() const override;
|
| int RtpTimestampRateHz() const override;
|
| size_t Num10MsFramesInNextPacket() const override;
|
| size_t Max10MsFramesInAPacket() const override;
|
| int GetTargetBitrate() const override;
|
| - void SetTargetBitrate(int bits_per_second) override;
|
| - void SetProjectedPacketLossRate(double fraction) override;
|
| EncodedInfo EncodeInternal(uint32_t rtp_timestamp,
|
| const int16_t* audio,
|
| size_t max_encoded_bytes,
|
| uint8_t* encoded) override;
|
| + void Reset() override;
|
| + bool SetFec(bool enable) override;
|
| + bool SetDtx(bool enable) override;
|
| + bool SetApplication(Application application) override;
|
| + bool SetMaxPlaybackRate(int frequency_hz) override;
|
| + void SetProjectedPacketLossRate(double fraction) override;
|
| + void SetTargetBitrate(int target_bps) override;
|
| + void SetMaxBitrate(int max_bps) override;
|
| + void SetMaxPayloadSize(int max_payload_size_bytes) override;
|
|
|
| private:
|
| AudioEncoder* speech_encoder_;
|
|
|