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); if (G722dec_inst == NULL) { return -1; } else { return 0; } }
void WebRtcG722_DecoderInit(G722DecInst* inst) { // Create and/or reset the G.722 decoder // Bitrate 64 kbps and wideband mode (2) WebRtc_g722_decode_init((G722DecoderState*)inst, 64000, 2); }