mirror of
https://github.com/vsariola/sointu.git
synced 2026-09-28 19:12:03 -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:
@@ -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