From 7672e8d60586129e8f4f9c718d1d62f3c9c0b729 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 9 Feb 2019 22:03:15 +0100 Subject: language selection now returns result --- pkg/mixer/mixer.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'pkg/mixer/mixer.go') diff --git a/pkg/mixer/mixer.go b/pkg/mixer/mixer.go index c3040fe..8dfda64 100644 --- a/pkg/mixer/mixer.go +++ b/pkg/mixer/mixer.go @@ -29,7 +29,7 @@ import ( "github.com/scgolang/midi" ) -type MixerChannel uint8 +type Channel uint8 type FaderLevel uint8 type Mixer struct { @@ -102,15 +102,15 @@ func (m *Mixer) sendMute(channel byte, value byte) error { return nil } -func (m *Mixer) Mute(ch MixerChannel) error { +func (m *Mixer) Mute(ch Channel) error { return m.sendMute(byte(ch), 0x7F) } -func (m *Mixer) UnMute(ch MixerChannel) error { +func (m *Mixer) UnMute(ch Channel) error { return m.sendMute(byte(ch), 0x00) } -func (m *Mixer) SetLevel(ch MixerChannel, level FaderLevel) error { +func (m *Mixer) SetLevel(ch Channel, level FaderLevel) error { if level > FaderLevelMax { level = FaderLevelMax } -- cgit v1.2.3