Add const qualifier to WebRtcPcm16b_Encode
BUG=909 R=kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/28199004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7831 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@@ -54,9 +54,9 @@ int16_t WebRtcPcm16b_EncodeW16(const int16_t* speechIn16b,
|
|||||||
* Returned value : Size in bytes of speech8b
|
* Returned value : Size in bytes of speech8b
|
||||||
*/
|
*/
|
||||||
|
|
||||||
int16_t WebRtcPcm16b_Encode(int16_t *speech16b,
|
int16_t WebRtcPcm16b_Encode(const int16_t* speech16b,
|
||||||
int16_t len,
|
int16_t len,
|
||||||
unsigned char *speech8b);
|
unsigned char* speech8b);
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* WebRtcPcm16b_DecodeW16(...)
|
* WebRtcPcm16b_DecodeW16(...)
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ int16_t WebRtcPcm16b_EncodeW16(const int16_t* speechIn16b,
|
|||||||
|
|
||||||
|
|
||||||
/* Encoder with char Output (old version) */
|
/* Encoder with char Output (old version) */
|
||||||
int16_t WebRtcPcm16b_Encode(int16_t *speech16b,
|
int16_t WebRtcPcm16b_Encode(const int16_t *speech16b,
|
||||||
int16_t len,
|
int16_t len,
|
||||||
unsigned char *speech8b)
|
unsigned char *speech8b)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -64,9 +64,8 @@ int64_t NetEqPerformanceTest::Run(int runtime_ms,
|
|||||||
const int16_t* input_samples = audio_loop.GetNextBlock();
|
const int16_t* input_samples = audio_loop.GetNextBlock();
|
||||||
if (!input_samples) exit(1);
|
if (!input_samples) exit(1);
|
||||||
uint8_t input_payload[kInputBlockSizeSamples * sizeof(int16_t)];
|
uint8_t input_payload[kInputBlockSizeSamples * sizeof(int16_t)];
|
||||||
size_t payload_len = WebRtcPcm16b_Encode(const_cast<int16_t*>(input_samples),
|
size_t payload_len =
|
||||||
kInputBlockSizeSamples,
|
WebRtcPcm16b_Encode(input_samples, kInputBlockSizeSamples, input_payload);
|
||||||
input_payload);
|
|
||||||
assert(payload_len == kInputBlockSizeSamples * sizeof(int16_t));
|
assert(payload_len == kInputBlockSizeSamples * sizeof(int16_t));
|
||||||
|
|
||||||
// Main loop.
|
// Main loop.
|
||||||
|
|||||||
Reference in New Issue
Block a user