mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-20 22:14:35 -04:00
feat(tracker): compile with midi support only when CGO is available
Also add the midi context to the VSTI, so VSTI can use MIDI if they wish so.
This commit is contained in:
parent
3881b8eb22
commit
602b3b05cc
12
cmd/midi_cgo.go
Normal file
12
cmd/midi_cgo.go
Normal file
@ -0,0 +1,12 @@
|
||||
//go:build cgo
|
||||
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"github.com/vsariola/sointu/tracker"
|
||||
"github.com/vsariola/sointu/tracker/gomidi"
|
||||
)
|
||||
|
||||
func NewMidiContext(broker *tracker.Broker) tracker.MIDIContext {
|
||||
return gomidi.NewContext(broker)
|
||||
}
|
Reference in New Issue
Block a user