Use a deterministic input in NetEqBgnTest

This test has been failing every now and then. This is likely due to the
random input that was used. With this change, the input is now read from
an audio file, making it identical on each run.

The encoding is moved to inside the main test loop, so that new data is
added with each packet. (Before this change, the same payload was added
over and over again; only the RTP header was updated.)

BUG=3715
R=turaj@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/19079004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6948 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
henrik.lundin@webrtc.org
2014-08-21 08:27:44 +00:00
parent 6b2659c660
commit 9b8102cf0e
3 changed files with 73 additions and 38 deletions

View File

@@ -35,9 +35,9 @@ extern "C" {
* Returned value : Size in bytes of speechOut16b
*/
int16_t WebRtcPcm16b_EncodeW16(int16_t *speechIn16b,
int16_t WebRtcPcm16b_EncodeW16(const int16_t* speechIn16b,
int16_t len,
int16_t *speechOut16b);
int16_t* speechOut16b);
/****************************************************************************
* WebRtcPcm16b_Encode(...)

View File

@@ -25,9 +25,9 @@
/* Encoder with int16_t Output */
int16_t WebRtcPcm16b_EncodeW16(int16_t *speechIn16b,
int16_t WebRtcPcm16b_EncodeW16(const int16_t* speechIn16b,
int16_t len,
int16_t *speechOut16b)
int16_t* speechOut16b)
{
#ifdef WEBRTC_ARCH_BIG_ENDIAN
WEBRTC_SPL_MEMCPY_W16(speechOut16b, speechIn16b, len);