Exemplo n.º 1
0
Arquivo: sox.go Projeto: 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
}
Exemplo n.º 2
0
Arquivo: sox.go Projeto: 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)))
}