Implement audio_interruption metric for kCodecPlc
Audio interruption metric is not implemented for codecs doing their own PLC. R=ivoc@webrtc.org, jakobi@webrtc.org Bug: b/177523033 webrtc:12456 Change-Id: I0aca6fa5c0ff617e76ee1e4ed8d95703c7097223 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/206561 Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Christoffer Rodbro <crodbro@webrtc.org> Reviewed-by: Jakob Ivarsson <jakobi@webrtc.org> Reviewed-by: Ivo Creusen <ivoc@webrtc.org> Commit-Queue: Pablo Barrera González <barrerap@google.com> Cr-Commit-Position: refs/heads/master@{#33229}
This commit is contained in:
committed by
Commit Bot
parent
983627c88d
commit
ff0e01f689
@ -50,7 +50,7 @@ TEST(Normal, CreateAndDestroy) {
|
||||
RandomVector random_vector;
|
||||
StatisticsCalculator statistics;
|
||||
Expand expand(&bgn, &sync_buffer, &random_vector, &statistics, fs, channels);
|
||||
Normal normal(fs, &db, bgn, &expand);
|
||||
Normal normal(fs, &db, bgn, &expand, &statistics);
|
||||
EXPECT_CALL(db, Die()); // Called when |db| goes out of scope.
|
||||
}
|
||||
|
||||
@ -64,7 +64,7 @@ TEST(Normal, AvoidDivideByZero) {
|
||||
StatisticsCalculator statistics;
|
||||
MockExpand expand(&bgn, &sync_buffer, &random_vector, &statistics, fs,
|
||||
channels);
|
||||
Normal normal(fs, &db, bgn, &expand);
|
||||
Normal normal(fs, &db, bgn, &expand, &statistics);
|
||||
|
||||
int16_t input[1000] = {0};
|
||||
AudioMultiVector output(channels);
|
||||
@ -99,7 +99,7 @@ TEST(Normal, InputLengthAndChannelsDoNotMatch) {
|
||||
StatisticsCalculator statistics;
|
||||
MockExpand expand(&bgn, &sync_buffer, &random_vector, &statistics, fs,
|
||||
channels);
|
||||
Normal normal(fs, &db, bgn, &expand);
|
||||
Normal normal(fs, &db, bgn, &expand, &statistics);
|
||||
|
||||
int16_t input[1000] = {0};
|
||||
AudioMultiVector output(channels);
|
||||
@ -124,7 +124,7 @@ TEST(Normal, LastModeExpand120msPacket) {
|
||||
StatisticsCalculator statistics;
|
||||
MockExpand expand(&bgn, &sync_buffer, &random_vector, &statistics, kFs,
|
||||
kChannels);
|
||||
Normal normal(kFs, &db, bgn, &expand);
|
||||
Normal normal(kFs, &db, bgn, &expand, &statistics);
|
||||
|
||||
int16_t input[kPacketsizeBytes] = {0};
|
||||
AudioMultiVector output(kChannels);
|
||||
|
||||
Reference in New Issue
Block a user