G711: Make input arrays const and use uint8_t[] for byte arrays
BUG=909 R=henrik.lundin@webrtc.org Review URL: https://webrtc-codereview.appspot.com/39809004 Cr-Commit-Position: refs/heads/master@{#8294} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8294 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -38,9 +38,9 @@ extern "C" {
|
||||
* -1 - Error
|
||||
*/
|
||||
|
||||
int16_t WebRtcG711_EncodeA(int16_t* speechIn,
|
||||
int16_t WebRtcG711_EncodeA(const int16_t* speechIn,
|
||||
int16_t len,
|
||||
int16_t* encoded);
|
||||
uint8_t* encoded);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcG711_EncodeU(...)
|
||||
@ -59,9 +59,9 @@ int16_t WebRtcG711_EncodeA(int16_t* speechIn,
|
||||
* -1 - Error
|
||||
*/
|
||||
|
||||
int16_t WebRtcG711_EncodeU(int16_t* speechIn,
|
||||
int16_t WebRtcG711_EncodeU(const int16_t* speechIn,
|
||||
int16_t len,
|
||||
int16_t* encoded);
|
||||
uint8_t* encoded);
|
||||
|
||||
/****************************************************************************
|
||||
* WebRtcG711_DecodeA(...)
|
||||
@ -82,7 +82,7 @@ int16_t WebRtcG711_EncodeU(int16_t* speechIn,
|
||||
* -1 - Error
|
||||
*/
|
||||
|
||||
int16_t WebRtcG711_DecodeA(int16_t* encoded,
|
||||
int16_t WebRtcG711_DecodeA(const uint8_t* encoded,
|
||||
int16_t len,
|
||||
int16_t* decoded,
|
||||
int16_t* speechType);
|
||||
@ -106,7 +106,7 @@ int16_t WebRtcG711_DecodeA(int16_t* encoded,
|
||||
* -1 - Error
|
||||
*/
|
||||
|
||||
int16_t WebRtcG711_DecodeU(int16_t* encoded,
|
||||
int16_t WebRtcG711_DecodeU(const uint8_t* encoded,
|
||||
int16_t len,
|
||||
int16_t* decoded,
|
||||
int16_t* speechType);
|
||||
|
||||
Reference in New Issue
Block a user