* Input speech length has be of any length.
*
* Input:
- * - state : Dummy state to make this codec look more like
- * other codecs
* - speechIn : Input speech vector
* - len : Samples in speechIn
*
* -1 - Error
*/
-int16_t WebRtcG711_EncodeA(void* state,
- int16_t* speechIn,
+int16_t WebRtcG711_EncodeA(int16_t* speechIn,
int16_t len,
int16_t* encoded);
* Input speech length has be of any length.
*
* Input:
- * - state : Dummy state to make this codec look more like
- * other codecs
* - speechIn : Input speech vector
* - len : Samples in speechIn
*
* -1 - Error
*/
-int16_t WebRtcG711_EncodeU(void* state,
- int16_t* speechIn,
+int16_t WebRtcG711_EncodeU(int16_t* speechIn,
int16_t len,
int16_t* encoded);
* This function decodes a packet G711 A-law frame.
*
* Input:
- * - state : Dummy state to make this codec look more like
- * other codecs
* - encoded : Encoded data
* - len : Bytes in encoded vector
*
* -1 - Error
*/
-int16_t WebRtcG711_DecodeA(void* state,
- int16_t* encoded,
+int16_t WebRtcG711_DecodeA(int16_t* encoded,
int16_t len,
int16_t* decoded,
int16_t* speechType);
* This function decodes a packet G711 U-law frame.
*
* Input:
- * - state : Dummy state to make this codec look more like
- * other codecs
* - encoded : Encoded data
* - len : Bytes in encoded vector
*
* -1 - Error
*/
-int16_t WebRtcG711_DecodeU(void* state,
- int16_t* encoded,
+int16_t WebRtcG711_DecodeU(int16_t* encoded,
int16_t len,
int16_t* decoded,
int16_t* speechType);
* This function estimates the duration of a G711 packet in samples.
*
* Input:
- * - state : Dummy state to make this codec look more like
- * other codecs
* - payload : Encoded data
* - payloadLengthBytes : Bytes in encoded vector
*
* byte per sample.
*/
-int WebRtcG711_DurationEst(void* state,
- const uint8_t* payload,
+int WebRtcG711_DurationEst(const uint8_t* payload,
int payload_length_bytes);
/**********************************************************************