summaryrefslogtreecommitdiff
path: root/cmd/dolmetschctld/statemachine.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-13 18:10:54 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-13 18:10:54 +0100
commit6fc90db16480abee1b6aa3ee4352793054f99714 (patch)
tree5f43b8018e33457b1f556097c16704930d12255c /cmd/dolmetschctld/statemachine.go
parentadded web handler for language (diff)
added basic web socket interface
Diffstat (limited to 'cmd/dolmetschctld/statemachine.go')
-rw-r--r--cmd/dolmetschctld/statemachine.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/dolmetschctld/statemachine.go b/cmd/dolmetschctld/statemachine.go
index 9ae5ff3..2cea91d 100644
--- a/cmd/dolmetschctld/statemachine.go
+++ b/cmd/dolmetschctld/statemachine.go
@@ -65,6 +65,11 @@ func (l Language) String() string {
return string(l)
}
+func (s Language) MarshalText() (data []byte, err error) {
+ data = []byte(s.String())
+ return
+}
+
type MixerChannelState struct {
level mixer.FaderLevel
mute mixer.Mute