Reducing opus_test runtime to pass Android test
BUG=2609 R=solenberg@webrtc.org, tina.legrand@webrtc.org Review URL: https://webrtc-codereview.appspot.com/3639004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5111 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -219,6 +219,7 @@ void OpusTest::Run(TestPackStereo* channel, int channels, int bitrate,
|
|||||||
int written_samples = 0;
|
int written_samples = 0;
|
||||||
int read_samples = 0;
|
int read_samples = 0;
|
||||||
int decoded_samples = 0;
|
int decoded_samples = 0;
|
||||||
|
|
||||||
channel->reset_payload_size();
|
channel->reset_payload_size();
|
||||||
counter_ = 0;
|
counter_ = 0;
|
||||||
|
|
||||||
@@ -226,7 +227,8 @@ void OpusTest::Run(TestPackStereo* channel, int channels, int bitrate,
|
|||||||
EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_mono_encoder_, bitrate));
|
EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_mono_encoder_, bitrate));
|
||||||
EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_stereo_encoder_, bitrate));
|
EXPECT_EQ(0, WebRtcOpus_SetBitRate(opus_stereo_encoder_, bitrate));
|
||||||
|
|
||||||
while (1) {
|
// Make sure the runtime is less than 60 seconds to pass Android test.
|
||||||
|
for (size_t audio_length = 0; audio_length < 10000; audio_length += 10) {
|
||||||
bool lost_packet = false;
|
bool lost_packet = false;
|
||||||
|
|
||||||
// Get 10 msec of audio.
|
// Get 10 msec of audio.
|
||||||
|
|||||||
Reference in New Issue
Block a user