This update causes two tests from cast_unittests to fail with the error messages given below. These look to be due to tight constraints on the validity of the decoded signals, as can be seen in attached plots, and can probably be relaxed.
---
[ RUN ] AudioDecoderTestScenarios/AudioDecoderTest.DecodesFramesWithVaryingDuration/2
../../media/cast/receiver/audio_decoder_unittest.cc:175: Failure
The difference between TestAudioBusFactory::kMiddleANoteFreq * 2 * audio_bus->frames() / GetParam().sampling_rate and CountZeroCrossings(audio_bus->channel(ch), audio_bus->frames()) is 2, which exceeds 1, where
TestAudioBusFactory::kMiddleANoteFreq * 2 * audio_bus->frames() / GetParam().sampling_rate evaluates to 4,
CountZeroCrossings(audio_bus->channel(ch), audio_bus->frames()) evaluates to 2, and
1 evaluates to 1.
[ FAILED ] AudioDecoderTestScenarios/AudioDecoderTest.DecodesFramesWithVaryingDuration/2, where GetParam() = 12-byte object <01-00 00-00 01-00 00-00 40-1F 00-00> (37 ms)
---
[ RUN ] AudioDecoderTestScenarios/AudioDecoderTest.RecoversFromDroppedFrames/2
../../media/cast/receiver/audio_decoder_unittest.cc:175: Failure
The difference between TestAudioBusFactory::kMiddleANoteFreq * 2 * audio_bus->frames() / GetParam().sampling_rate and CountZeroCrossings(audio_bus->channel(ch), audio_bus->frames()) is 2, which exceeds 1, where
TestAudioBusFactory::kMiddleANoteFreq * 2 * audio_bus->frames() / GetParam().sampling_rate evaluates to 8,
CountZeroCrossings(audio_bus->channel(ch), audio_bus->frames()) evaluates to 6, and
1 evaluates to 1.
[ FAILED ] AudioDecoderTestScenarios/AudioDecoderTest.RecoversFromDroppedFrames/2, where GetParam() = 12-byte object <01-00 00-00 01-00 00-00 40-1F 00-00> (25 ms)
Comment 1 by flim@chromium.org
, Jul 13 201735.8 KB
35.8 KB View Download
58.9 KB
58.9 KB View Download