static USC_Status Decode(USC_Handle handle, const USC_Bitstream *in, USC_PCMStream *out) { G729_Handle *g729_handle; G729Decoder_Obj *DecObj; g729_handle = (G729_Handle*)handle; DecObj = (G729Decoder_Obj *)&g729_handle->Object; if(apiG729Decode(DecObj,(const unsigned char*)in->pBuffer,in->frametype,(unsigned short*)out->pBuffer) != APIG729_StsNoErr){ return USC_NoOperation; } return USC_NoError; }
void g729_decoder(PVT *hDecoder, short *ddp, char *edp, int plen){ // EasyG729A_decoder(*hDecoder, (unsigned char *)edp, (short *)ddp); apiG729Decode(hDecoder->coder, edp, g729_frame_type(plen), ddp); }