func helper_callFunction(params *C.TA_ParamHolder, startIndex, endIndex int, out1, out2 *C.TA_Integer) { if C.TA_CallFunc( params, C.TA_Integer(startIndex), C.TA_Integer(endIndex), out1, out2) != C.TA_SUCCESS { panic("doh") } }
func helper_convertGoIntArrayToTaIntegerArray(inData []int, outData *[]C.TA_Integer) { dataLength := len(inData) *outData = make([]C.TA_Integer, dataLength) for i := 0; i < dataLength; i++ { (*outData)[i] = C.TA_Integer(inData[i]) } }
func helper_setOptInputDataInteger(params *C.TA_ParamHolder, paramIndex int, value int) { if ret := C.TA_SetOptInputParamInteger(params, C.uint(paramIndex), C.TA_Integer(value)); ret != C.TA_SUCCESS { panic("doh") } }