Example #1
0
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)
}
Example #2
0
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)
}
Example #3
0
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)
	})
}
Example #4
0
func init() {
	abc.Register("auwrite", map[string]abc.Socket{
		"out": abc.Socket{basic.Fd, abc.Male},
		"1":   abc.Socket{SamplesT, abc.Female},
	}, makeWrite)
}
Example #5
0
func init() {
	abc.Register("stdout", map[string]abc.Socket{
		"1": abc.Socket{FdT, abc.Female},
	}, makeStdout)
}
Example #6
0
func init() {
	abc.Register("read", map[string]abc.Socket{
		"1":   abc.Socket{abc.StringT, abc.Female},
		"out": abc.Socket{FdT, abc.Male},
	}, makeRead)
}
Example #7
0
func init() {
	abc.Register("write", map[string]abc.Socket{
		"1": abc.Socket{FdT, abc.Female},
		"2": abc.Socket{abc.StringT, abc.Female},
	}, makeWrite)
}
Example #8
0
func init() {
	abc.Register("rot13", map[string]abc.Socket{
		"out": abc.Socket{FdT, abc.Male},
		"1":   abc.Socket{FdT, abc.Female},
	}, makeRot13)
}
Example #9
0
func init() {
	abc.Register("stdin", map[string]abc.Socket{
		"out": abc.Socket{FdT, abc.Male},
	}, makeStdin)
}
Example #10
0
func init() {
	abc.Register("time", map[string]abc.Socket{
		"1":   abc.Socket{abc.StringT, abc.Female},
		"out": abc.Socket{TimeT, abc.Male},
	}, makeTime)
}
Example #11
0
func init() {
	abc.Register("echo", map[string]abc.Socket{
		"1":   abc.Socket{abc.StringT, abc.Female},
		"out": abc.Socket{FdT, abc.Male},
	}, makeEcho)
}