diff options
Diffstat (limited to 'pkg/mixer/mixer.go')
-rw-r--r-- | pkg/mixer/mixer.go | 8 |
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 } |