Revert "Refactor NetEq delay manager logic."
This reverts commit f8e62fcb14e37a5be4f1e4f599d34c8483fea8e9. Reason for revert: breaks downstream test. Original change's description: > Refactor NetEq delay manager logic. > > - Removes dependence on sequence number for calculating target delay. > - Changes target delay unit to milliseconds instead of number of > packets. > - Moves acceleration/preemptive expand thresholds to decision logic. > Tests for this will be added in a follow up cl. > > Bug: webrtc:10333 > Change-Id: If690aae4abf41ef1d9353f0ff01fb7d121cf8a26 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186265 > Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> > Reviewed-by: Ivo Creusen <ivoc@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#32326} TBR=ivoc@webrtc.org,jakobi@webrtc.org Change-Id: I1bdeacce61b902a0003a40c740f6acccf1443e3e No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:10333 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/186942 Reviewed-by: Jakob Ivarsson <jakobi@webrtc.org> Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32329}
This commit is contained in:
committed by
Commit Bot
parent
df5f864055
commit
b1ae5ccd16
@ -804,10 +804,8 @@ TEST_P(NetEqImplTestSampleRateParameter,
|
||||
EXPECT_EQ(NetEq::kOK, neteq_->GetAudio(&output, &muted));
|
||||
}
|
||||
|
||||
// Insert a few packets to avoid postpone decoding after expand.
|
||||
for (size_t i = 0; i < 5; ++i) {
|
||||
insert_packet();
|
||||
}
|
||||
// Insert one more packet.
|
||||
insert_packet();
|
||||
|
||||
// Pull audio until the newly inserted packet is decoded and the PLC ends.
|
||||
while (output.speech_type_ != AudioFrame::kNormalSpeech) {
|
||||
@ -883,10 +881,8 @@ TEST_P(NetEqImplTestSampleRateParameter, AudioInterruptionLogged) {
|
||||
EXPECT_NE(AudioFrame::kNormalSpeech, output.speech_type_);
|
||||
}
|
||||
|
||||
// Insert a few packets to avoid postpone decoding after expand.
|
||||
for (size_t i = 0; i < 5; ++i) {
|
||||
insert_packet();
|
||||
}
|
||||
// Insert one more packet.
|
||||
insert_packet();
|
||||
|
||||
// Pull audio until the newly inserted packet is decoded and the PLC ends.
|
||||
while (output.speech_type_ != AudioFrame::kNormalSpeech) {
|
||||
@ -1303,7 +1299,7 @@ TEST_F(NetEqImplTest, DecodingError) {
|
||||
SdpAudioFormat("L16", 8000, 1)));
|
||||
|
||||
// Insert packets.
|
||||
for (int i = 0; i < 20; ++i) {
|
||||
for (int i = 0; i < 6; ++i) {
|
||||
rtp_header.sequenceNumber += 1;
|
||||
rtp_header.timestamp += kFrameLengthSamples;
|
||||
EXPECT_EQ(NetEq::kOK, neteq_->InsertPacket(rtp_header, payload));
|
||||
|
||||
Reference in New Issue
Block a user