Rename _t struct types in audio_coding.
_t names are reserved in POSIX. R=henrik.lundin@webrtc.org BUG=162 Review URL: https://webrtc-codereview.appspot.com/34509004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7933 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -18,7 +18,7 @@
|
||||
|
||||
int16_t WebRtcG722_CreateEncoder(G722EncInst **G722enc_inst)
|
||||
{
|
||||
*G722enc_inst=(G722EncInst*)malloc(sizeof(g722_encode_state_t));
|
||||
*G722enc_inst=(G722EncInst*)malloc(sizeof(G722EncoderState));
|
||||
if (*G722enc_inst!=NULL) {
|
||||
return(0);
|
||||
} else {
|
||||
@ -31,7 +31,7 @@ int16_t WebRtcG722_EncoderInit(G722EncInst *G722enc_inst)
|
||||
// Create and/or reset the G.722 encoder
|
||||
// Bitrate 64 kbps and wideband mode (2)
|
||||
G722enc_inst = (G722EncInst *) WebRtc_g722_encode_init(
|
||||
(g722_encode_state_t*) G722enc_inst, 64000, 2);
|
||||
(G722EncoderState*) G722enc_inst, 64000, 2);
|
||||
if (G722enc_inst == NULL) {
|
||||
return -1;
|
||||
} else {
|
||||
@ -42,7 +42,7 @@ int16_t WebRtcG722_EncoderInit(G722EncInst *G722enc_inst)
|
||||
int16_t WebRtcG722_FreeEncoder(G722EncInst *G722enc_inst)
|
||||
{
|
||||
// Free encoder memory
|
||||
return WebRtc_g722_encode_release((g722_encode_state_t*) G722enc_inst);
|
||||
return WebRtc_g722_encode_release((G722EncoderState*) G722enc_inst);
|
||||
}
|
||||
|
||||
int16_t WebRtcG722_Encode(G722EncInst *G722enc_inst,
|
||||
@ -52,13 +52,13 @@ int16_t WebRtcG722_Encode(G722EncInst *G722enc_inst,
|
||||
{
|
||||
unsigned char *codechar = (unsigned char*) encoded;
|
||||
// Encode the input speech vector
|
||||
return WebRtc_g722_encode((g722_encode_state_t*) G722enc_inst,
|
||||
return WebRtc_g722_encode((G722EncoderState*) G722enc_inst,
|
||||
codechar, speechIn, len);
|
||||
}
|
||||
|
||||
int16_t WebRtcG722_CreateDecoder(G722DecInst **G722dec_inst)
|
||||
{
|
||||
*G722dec_inst=(G722DecInst*)malloc(sizeof(g722_decode_state_t));
|
||||
*G722dec_inst=(G722DecInst*)malloc(sizeof(G722DecoderState));
|
||||
if (*G722dec_inst!=NULL) {
|
||||
return(0);
|
||||
} else {
|
||||
@ -71,7 +71,7 @@ int16_t WebRtcG722_DecoderInit(G722DecInst *G722dec_inst)
|
||||
// Create and/or reset the G.722 decoder
|
||||
// Bitrate 64 kbps and wideband mode (2)
|
||||
G722dec_inst = (G722DecInst *) WebRtc_g722_decode_init(
|
||||
(g722_decode_state_t*) G722dec_inst, 64000, 2);
|
||||
(G722DecoderState*) G722dec_inst, 64000, 2);
|
||||
if (G722dec_inst == NULL) {
|
||||
return -1;
|
||||
} else {
|
||||
@ -82,7 +82,7 @@ int16_t WebRtcG722_DecoderInit(G722DecInst *G722dec_inst)
|
||||
int16_t WebRtcG722_FreeDecoder(G722DecInst *G722dec_inst)
|
||||
{
|
||||
// Free encoder memory
|
||||
return WebRtc_g722_decode_release((g722_decode_state_t*) G722dec_inst);
|
||||
return WebRtc_g722_decode_release((G722DecoderState*) G722dec_inst);
|
||||
}
|
||||
|
||||
int16_t WebRtcG722_Decode(G722DecInst *G722dec_inst,
|
||||
@ -93,7 +93,7 @@ int16_t WebRtcG722_Decode(G722DecInst *G722dec_inst,
|
||||
{
|
||||
// Decode the G.722 encoder stream
|
||||
*speechType=G722_WEBRTC_SPEECH;
|
||||
return WebRtc_g722_decode((g722_decode_state_t*) G722dec_inst,
|
||||
return WebRtc_g722_decode((G722DecoderState*) G722dec_inst,
|
||||
decoded, (uint8_t*) encoded, len);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user