Example #1
0
File: sox.go Project: 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
}
Example #2
0
File: sox.go Project: 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)))
}