Set NetEq playout mode through the Config struct
This change opens up the possibility to set the playout mode when creating the NetEq object. The old methods SetPlayoutMode and PlayoutMode are still available, but are deprecated. BUG=3520 R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/23869004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7381 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -442,12 +442,16 @@ TEST_F(NetEqDecodingTest, DISABLED_ON_ANDROID(TestBitExactness)) {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(hlundin): Re-enable test once the statistics interface is up and again.
|
||||
TEST_F(NetEqDecodingTest, TestFrameWaitingTimeStatistics) {
|
||||
// Use fax mode to avoid time-scaling. This is to simplify the testing of
|
||||
// packet waiting times in the packet buffer.
|
||||
neteq_->SetPlayoutMode(kPlayoutFax);
|
||||
ASSERT_EQ(kPlayoutFax, neteq_->PlayoutMode());
|
||||
// Use fax mode to avoid time-scaling. This is to simplify the testing of
|
||||
// packet waiting times in the packet buffer.
|
||||
class NetEqDecodingTestFaxMode : public NetEqDecodingTest {
|
||||
protected:
|
||||
NetEqDecodingTestFaxMode() : NetEqDecodingTest() {
|
||||
config_.playout_mode = kPlayoutFax;
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(NetEqDecodingTestFaxMode, TestFrameWaitingTimeStatistics) {
|
||||
// Insert 30 dummy packets at once. Each packet contains 10 ms 16 kHz audio.
|
||||
size_t num_frames = 30;
|
||||
const int kSamples = 10 * 16;
|
||||
|
||||
Reference in New Issue
Block a user