Adding a config struct to NetEq
With this change, the parameters sent to the NetEq::Create method are collected in one NetEq::Config struct. The benefit is that it is easier to set, change and override default values, and easier to expand with more parameters in the future. BUG=3083 R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/11949004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5902 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -254,7 +254,9 @@ NetEqDecodingTest::NetEqDecodingTest()
|
||||
}
|
||||
|
||||
void NetEqDecodingTest::SetUp() {
|
||||
neteq_ = NetEq::Create(kInitSampleRateHz);
|
||||
NetEq::Config config;
|
||||
config.sample_rate_hz = kInitSampleRateHz;
|
||||
neteq_ = NetEq::Create(config);
|
||||
NetEqNetworkStatistics stat;
|
||||
ASSERT_EQ(0, neteq_->NetworkStatistics(&stat));
|
||||
algorithmic_delay_ms_ = stat.current_buffer_size_ms;
|
||||
|
Reference in New Issue
Block a user