Renamed new EncodeInternal to EncodeImpl to ensure proper backwards compatibility.
Renamed the new variant of EncodeInternal to EncodeImpl, so that subclasses implementing one of the EncodeInternal don't need to explicitly contain 'using AudioEncoder::EncodeInternal' to avoid their implementation hiding the other variant of EncodeInternal. This causes a warning (treated as an error) when building using GCC. Review URL: https://codereview.webrtc.org/1764583003 Cr-Commit-Position: refs/heads/master@{#11868}
This commit is contained in:
@ -23,8 +23,6 @@ struct CodecInst;
|
||||
template <typename T>
|
||||
class AudioEncoderIsacT final : public AudioEncoder {
|
||||
public:
|
||||
using AudioEncoder::EncodeInternal;
|
||||
|
||||
// Allowed combinations of sample rate, frame size, and bit rate are
|
||||
// - 16000 Hz, 30 ms, 10000-32000 bps
|
||||
// - 16000 Hz, 60 ms, 10000-32000 bps
|
||||
@ -62,9 +60,9 @@ class AudioEncoderIsacT final : public AudioEncoder {
|
||||
size_t Num10MsFramesInNextPacket() const override;
|
||||
size_t Max10MsFramesInAPacket() const override;
|
||||
int GetTargetBitrate() const override;
|
||||
EncodedInfo EncodeInternal(uint32_t rtp_timestamp,
|
||||
rtc::ArrayView<const int16_t> audio,
|
||||
rtc::Buffer* encoded) override;
|
||||
EncodedInfo EncodeImpl(uint32_t rtp_timestamp,
|
||||
rtc::ArrayView<const int16_t> audio,
|
||||
rtc::Buffer* encoded) override;
|
||||
void Reset() override;
|
||||
|
||||
private:
|
||||
|
||||
@ -114,7 +114,7 @@ int AudioEncoderIsacT<T>::GetTargetBitrate() const {
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
AudioEncoder::EncodedInfo AudioEncoderIsacT<T>::EncodeInternal(
|
||||
AudioEncoder::EncodedInfo AudioEncoderIsacT<T>::EncodeImpl(
|
||||
uint32_t rtp_timestamp,
|
||||
rtc::ArrayView<const int16_t> audio,
|
||||
rtc::Buffer* encoded) {
|
||||
|
||||
Reference in New Issue
Block a user