mirror of
https://github.com/vsariola/sointu.git
synced 2026-10-03 21:42:02 -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"
|
||||
)
|
||||
|
||||
func NewMidiContext(broker *tracker.Broker) tracker.MIDIContext {
|
||||
// with no cgo, we cannot use MIDI, so return a null context
|
||||
return tracker.NullMIDIContext{}
|
||||
}
|
||||
Reference in New Issue
Block a user