DescriptionTighten up webrtc audio tests.
See http://goo.gl/LDae10. I'm trying to improve this algorithm. We used to
check that some value was high enough and that the average was in the right
ballpark. The new algorithm will count falling edges in the peaks instead,
as a means to detect the peaks in the audio signal. The algorithm reliably
yields one peak per second of sampled audio, which is correct because the
audio signal beeps at 1 Hz. To get some margin, I'm sampling four seconds
and checking that I get at least two peaks, which should be a rock solid
assumption even on slow machines.
BUG=357287, 357626
R=perkj@chromium.org
NOTRY=True
(passed all trybots, just got stuck on a broken win trybot)
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260878
Patch Set 1 #
Total comments: 5
Patch Set 2 : Halved beep time and sampling times. #Patch Set 3 : Improved documentation, tightened up a bit more. #Patch Set 4 : Backing down to two peaks after flakes. #Patch Set 5 : Further tweaks to combat flakes on Android. #
Messages
Total messages: 26 (0 generated)
|