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:
@ -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_));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user