WebRTC-DeprecateGlobalFieldTrialString/Enabled/ - part 7/inf
Convert audio/ and collateral (audio encoder copy red). Bug: webrtc:10335 Change-Id: Iac54c0cfd2f62f4402f3deec35ae2725ec35b81a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/255820 Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Jonas Oreland <jonaso@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36229}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
e72f4bc524
commit
a943e730b2
@ -190,7 +190,8 @@ void TestRedFec::RegisterSendCodec(
|
||||
AudioEncoderCopyRed::Config config;
|
||||
config.payload_type = red_payload_type;
|
||||
config.speech_encoder = std::move(encoder);
|
||||
encoder = std::make_unique<AudioEncoderCopyRed>(std::move(config));
|
||||
encoder = std::make_unique<AudioEncoderCopyRed>(std::move(config),
|
||||
field_trials_);
|
||||
receive_codecs.emplace(
|
||||
std::make_pair(red_payload_type,
|
||||
SdpAudioFormat("red", codec_format.clockrate_hz, 1)));
|
||||
|
@ -19,6 +19,7 @@
|
||||
#include "common_audio/vad/include/vad.h"
|
||||
#include "modules/audio_coding/test/Channel.h"
|
||||
#include "modules/audio_coding/test/PCMFile.h"
|
||||
#include "test/scoped_key_value_config.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -37,6 +38,7 @@ class TestRedFec {
|
||||
void Run();
|
||||
void OpenOutFile(int16_t testNumber);
|
||||
|
||||
test::ScopedKeyValueConfig field_trials_;
|
||||
const rtc::scoped_refptr<AudioEncoderFactory> encoder_factory_;
|
||||
const rtc::scoped_refptr<AudioDecoderFactory> decoder_factory_;
|
||||
std::unique_ptr<AudioCodingModule> _acmA;
|
||||
|
Reference in New Issue
Block a user