summaryrefslogtreecommitdiff
path: root/pkg/mixer
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-14 20:40:33 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-14 20:40:33 +0100
commitbebf25438793a645ba022bb6b379f1882faac9b5 (patch)
tree246ef142f09ea2df7cc8e216b5867c6a48867e29 /pkg/mixer
parentalso improve subscription for statemachine (diff)
minor refactoring
Diffstat (limited to 'pkg/mixer')
-rw-r--r--pkg/mixer/mixer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/mixer/mixer.go b/pkg/mixer/mixer.go
index 53b0410..96fbf8d 100644
--- a/pkg/mixer/mixer.go
+++ b/pkg/mixer/mixer.go
@@ -159,7 +159,7 @@ func NewMixer(c Config) (*Mixer, error) {
return m, nil
}
-func (m *Mixer) sendEvent(ev Event) {
+func (m *Mixer) publishEvent(ev Event) {
m.subscribersLock.Lock()
defer m.subscribersLock.Unlock()
@@ -209,7 +209,7 @@ func (m *Mixer) handleMidiPacket(p midi.Packet) {
default:
return
}
- m.sendEvent(ev)
+ m.publishEvent(ev)
}
func (m *Mixer) Init() error {