G722 implementation of the AudioEncoderFactoryTemplate API

Now the templated AudioEncoderFactory can create G722 encoders!

BUG=webrtc:7833

Review-Url: https://codereview.webrtc.org/2934833002
Cr-Commit-Position: refs/heads/master@{#18644}
This commit is contained in:
kwiberg
2017-06-17 17:41:59 -07:00
committed by Commit Bot
parent b1ed7f09c0
commit b8727aebc1
12 changed files with 209 additions and 61 deletions

View File

@ -404,11 +404,10 @@ class AudioDecoderG722Test : public AudioDecoderTest {
data_length_ = 10 * frame_size_;
decoder_ = new AudioDecoderG722Impl;
assert(decoder_);
AudioEncoderG722::Config config;
AudioEncoderG722Config config;
config.frame_size_ms = 10;
config.payload_type = payload_type_;
config.num_channels = 1;
audio_encoder_.reset(new AudioEncoderG722(config));
audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_));
}
};
@ -421,11 +420,10 @@ class AudioDecoderG722StereoTest : public AudioDecoderTest {
data_length_ = 10 * frame_size_;
decoder_ = new AudioDecoderG722Stereo;
assert(decoder_);
AudioEncoderG722::Config config;
AudioEncoderG722Config config;
config.frame_size_ms = 10;
config.payload_type = payload_type_;
config.num_channels = 2;
audio_encoder_.reset(new AudioEncoderG722(config));
audio_encoder_.reset(new AudioEncoderG722Impl(config, payload_type_));
}
};