package hikvoice /* #cgo CFLAGS: -I${SRCDIR}/include -w -g #cgo LDFLAGS: -L${SRCDIR}/libs #cgo LDFLAGS: -lHikVoice -lAudioRender -lHCCore -lhcnetsdk -lhpr #cgo LDFLAGS: -ldl -lm #include #include "hikptz.h" */ import "C" import ( "unsafe" ) // SendVoice Send Voice func PtzTrack(ip,password,port,userName string, channel,xBottom,xTop,yBottom,yTop int) { cip := C.CString(ip) defer C.free(unsafe.Pointer(cip)) cusrname := C.CString(userName) defer C.free(unsafe.Pointer(cusrname)) cpasswd := C.CString(password) defer C.free(unsafe.Pointer(cpasswd)) cport := C.CString(port) defer C.free(unsafe.Pointer(cport)) C.PtzTrack(cip, cusrname, cpasswd, cport, C.int(channel),C.int(xBottom),C.int(xTop),C.int(yBottom),C.int(yTop) ) } func ToPreset(ip,password,port,userName string, ch int) { }