Files
sointu/cmd/midi_not_cgo.go
5684185+vsariola@users.noreply.github.com 602b3b05cc 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.
2025-06-20 19:38:06 +03:00

13 lines
244 B
Go

//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{}
}