mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
fix(cmd/sointu-vsti): use different name and ID for native vsti plugin
This commit is contained in:
parent
545f32bcc3
commit
e3c7d2cba4
@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
||||
|
||||
## Unreleased
|
||||
### Fixed
|
||||
- The sointu-vsti-native plugin has different plugin ID and plugin name
|
||||
to not confuse it with the non-native one
|
||||
|
||||
## v0.2.0
|
||||
### Added
|
||||
- Saving and loading instruments
|
||||
|
@ -44,8 +44,7 @@ func (c *VSTIProcessContext) BPM() (bpm float64, ok bool) {
|
||||
|
||||
func init() {
|
||||
var (
|
||||
uniqueID = [4]byte{'S', 'n', 't', 'u'}
|
||||
version = int32(100)
|
||||
version = int32(100)
|
||||
)
|
||||
vst2.PluginAllocator = func(h vst2.Host) (vst2.Plugin, vst2.Dispatcher) {
|
||||
modelMessages := make(chan interface{}, 1024)
|
||||
@ -58,11 +57,11 @@ func init() {
|
||||
context := VSTIProcessContext{make([]vst2.MIDIEvent, 100), h}
|
||||
buf := make([]float32, 2048)
|
||||
return vst2.Plugin{
|
||||
UniqueID: uniqueID,
|
||||
UniqueID: PLUGIN_ID,
|
||||
Version: version,
|
||||
InputChannels: 0,
|
||||
OutputChannels: 2,
|
||||
Name: "Sointu",
|
||||
Name: PLUGIN_NAME,
|
||||
Vendor: "vsariola/sointu",
|
||||
Category: vst2.PluginCategorySynth,
|
||||
Flags: vst2.PluginIsSynth,
|
||||
|
6
cmd/sointu-vsti/nameid_native.go
Normal file
6
cmd/sointu-vsti/nameid_native.go
Normal file
@ -0,0 +1,6 @@
|
||||
//go:build native
|
||||
|
||||
package main
|
||||
|
||||
var PLUGIN_ID = [4]byte{'S', 'n', 't', 'N'}
|
||||
var PLUGIN_NAME = "Sointu Native"
|
6
cmd/sointu-vsti/nameid_not_native.go
Normal file
6
cmd/sointu-vsti/nameid_not_native.go
Normal file
@ -0,0 +1,6 @@
|
||||
//go:build !native
|
||||
|
||||
package main
|
||||
|
||||
var PLUGIN_ID = [4]byte{'S', 'n', 't', 'u'}
|
||||
var PLUGIN_NAME = "Sointu"
|
Loading…
x
Reference in New Issue
Block a user