From bebf25438793a645ba022bb6b379f1882faac9b5 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Thu, 14 Feb 2019 20:40:33 +0100 Subject: minor refactoring --- pkg/mixer/mixer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/mixer/mixer.go') 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 { -- cgit v1.2.3