示例#1
0
文件: sox.go 项目: krig/go-sox
// FindEffect finds the effect handler with the given name.
func FindEffect(name string) *EffectHandler {
	var h EffectHandler
	cname := C.CString(name)
	h.cHandler = C.sox_find_effect(cname)
	C.free(unsafe.Pointer(cname))
	return &h
}
示例#2
0
文件: sox.go 项目: vbatts/go-sox
/*
Search for effect by name. nil is returned if nothing found.
*/
func FindEffect(name string) *Effect {
	return newEffect(C.sox_find_effect(C.CString(name)))
}