func init() { abc.Register("output", map[string]abc.Socket{ "audio", abc.Socket{SamplesT, abc.Female}, "1": abc.Socket{SamplesT, abc.Female}, "2": abc.Socket{abc.StringT, abc.Female}, }, makeOutput) }
func init() { abc.Register("buf", map[string]abc.Socket{ "1": abc.Socket{SamplesT, abc.Female}, "2": abc.Socket{abc.StringT, abc.Female}, }, makeBuffer) abc.Register("input", map[string]abc.Socket{ "out": abc.Socket{SamplesT, abc.Male}, "env": abc.Socket{AudioEnvT, abc.Female}, "1": abc.Socket{abc.StringT, abc.Female}, }, makeInput) abc.Register("audioenv", map[string]abc.Socket{ "out": abc.Socket{AudioEnvT, abc.Male}, }, makeAudioenv) }
func Register(name string, kind widgetKind, argtype map[string]abc.Socket, fn func(status *abc.Status, args map[string]interface{}) Widget) { auw := &auWidget{ name: name, kind: kind, argtype: argtype, make: fn, } abc.Register(name, argtype, func(status *abc.Status, args map[string]interface{}) abc.Widget { return makeAudioWidget(auw, status, args) }) }
func init() { abc.Register("auwrite", map[string]abc.Socket{ "out": abc.Socket{basic.Fd, abc.Male}, "1": abc.Socket{SamplesT, abc.Female}, }, makeWrite) }
func init() { abc.Register("stdout", map[string]abc.Socket{ "1": abc.Socket{FdT, abc.Female}, }, makeStdout) }
func init() { abc.Register("read", map[string]abc.Socket{ "1": abc.Socket{abc.StringT, abc.Female}, "out": abc.Socket{FdT, abc.Male}, }, makeRead) }
func init() { abc.Register("write", map[string]abc.Socket{ "1": abc.Socket{FdT, abc.Female}, "2": abc.Socket{abc.StringT, abc.Female}, }, makeWrite) }
func init() { abc.Register("rot13", map[string]abc.Socket{ "out": abc.Socket{FdT, abc.Male}, "1": abc.Socket{FdT, abc.Female}, }, makeRot13) }
func init() { abc.Register("stdin", map[string]abc.Socket{ "out": abc.Socket{FdT, abc.Male}, }, makeStdin) }
func init() { abc.Register("time", map[string]abc.Socket{ "1": abc.Socket{abc.StringT, abc.Female}, "out": abc.Socket{TimeT, abc.Male}, }, makeTime) }
func init() { abc.Register("echo", map[string]abc.Socket{ "1": abc.Socket{abc.StringT, abc.Female}, "out": abc.Socket{FdT, abc.Male}, }, makeEcho) }