Move AudioDecoderPcm16B next to AudioEncoderPcm16B
All AudioDecoder subclasses have historically lived in NetEq, but they fit better with the codec they wrap. BUG=webrtc:4557 R=henrik.lundin@webrtc.org Review URL: https://codereview.webrtc.org/1348113002 . Cr-Commit-Position: refs/heads/master@{#9963}
This commit is contained in:
@ -90,39 +90,6 @@ class AudioDecoderPcmAMultiCh : public AudioDecoderPcmA {
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcmAMultiCh);
|
||||
};
|
||||
|
||||
// This class handles all four types (i.e., sample rates) of PCM16B codecs.
|
||||
// The type is specified in the constructor parameter |type|.
|
||||
class AudioDecoderPcm16B : public AudioDecoder {
|
||||
public:
|
||||
AudioDecoderPcm16B();
|
||||
void Reset() override;
|
||||
int PacketDuration(const uint8_t* encoded, size_t encoded_len) const override;
|
||||
size_t Channels() const override;
|
||||
|
||||
protected:
|
||||
int DecodeInternal(const uint8_t* encoded,
|
||||
size_t encoded_len,
|
||||
int sample_rate_hz,
|
||||
int16_t* decoded,
|
||||
SpeechType* speech_type) override;
|
||||
|
||||
private:
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16B);
|
||||
};
|
||||
|
||||
// This class handles all four types (i.e., sample rates) of PCM16B codecs.
|
||||
// The type is specified in the constructor parameter |type|, and the number
|
||||
// of channels is derived from the type.
|
||||
class AudioDecoderPcm16BMultiCh : public AudioDecoderPcm16B {
|
||||
public:
|
||||
explicit AudioDecoderPcm16BMultiCh(size_t num_channels);
|
||||
size_t Channels() const override;
|
||||
|
||||
private:
|
||||
const size_t channels_;
|
||||
RTC_DISALLOW_COPY_AND_ASSIGN(AudioDecoderPcm16BMultiCh);
|
||||
};
|
||||
|
||||
#ifdef WEBRTC_CODEC_G722
|
||||
class AudioDecoderG722 : public AudioDecoder {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user