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