summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-09 22:03:15 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-09 22:03:15 +0100
commit7672e8d60586129e8f4f9c718d1d62f3c9c0b729 (patch)
tree1245e9010d245d83cbb27eb2e63fe88b62d544e6 /pkg
parentadded telnet control interface (diff)
language selection now returns result
Diffstat (limited to 'pkg')
-rw-r--r--pkg/mixer/mixer.go8
1 files changed, 4 insertions, 4 deletions
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
}