Remove the codec_type_ member from AudioDecoder
It isn't actually required, as evidenced by the comparative ease with which it can be removed. R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/31939004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7606 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -422,8 +422,7 @@ TEST_F(NetEqImplTest, VerifyTimestampPropagation) {
|
||||
// sample, and then increasing by 1 for each sample.
|
||||
class CountingSamplesDecoder : public AudioDecoder {
|
||||
public:
|
||||
explicit CountingSamplesDecoder(enum NetEqDecoder type)
|
||||
: AudioDecoder(type), next_value_(1) {}
|
||||
CountingSamplesDecoder() : next_value_(1) {}
|
||||
|
||||
// Produce as many samples as input bytes (|encoded_len|).
|
||||
virtual int Decode(const uint8_t* encoded,
|
||||
@ -446,7 +445,7 @@ TEST_F(NetEqImplTest, VerifyTimestampPropagation) {
|
||||
|
||||
private:
|
||||
int16_t next_value_;
|
||||
} decoder_(kDecoderPCM16B);
|
||||
} decoder_;
|
||||
|
||||
EXPECT_EQ(NetEq::kOK,
|
||||
neteq_->RegisterExternalDecoder(
|
||||
|
||||
Reference in New Issue
Block a user