fix(cmd/sointu-vsti): upgrade vst2 package & request tempo properly from host

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-07-18 00:58:00 +03:00
parent ccc8dc906f
commit ffb2f18c68
3 changed files with 4 additions and 2 deletions

View File

@ -35,7 +35,7 @@ func (c *VSTIProcessContext) NextEvent() (event tracker.PlayerProcessEvent, ok b
}
func (c *VSTIProcessContext) BPM() (bpm float64, ok bool) {
timeInfo := c.host.GetTimeInfo()
timeInfo := c.host.GetTimeInfo(vst2.TempoValid)
if timeInfo == nil || timeInfo.Flags&vst2.TempoValid == 0 || timeInfo.Tempo == 0 {
return 0, false
}