OSCL_EXPORT_REF int32 CPvGsmAmrEncoder::Reset()
{
    // reset GSM AMR encoder (state memory and SID sync function.)
    Word16 nStatus = AMREncodeReset(&iEncState, &iSidState);

    if (nStatus < 0)
    {
        return GSMAMR_ENC_CODEC_ENCODE_FAILURE;
    }
    return GSMAMR_ENC_NO_ERROR;
}
void Encoder_Interface_reset(void* s){
	struct encoder_state* state = (struct encoder_state*) s;
	AMREncodeReset(&state->encCtx,&state->pidSyncCtx);
}