Closed albyho closed 3 years ago
How to create a Jacobi.Vst.Core.VstTimeInfo
object?
You've closed the issue. Is the problem fixed?
Yes. The reason is :
public Jacobi.Vst.Core.VstTimeInfo GetTimeInfo(Jacobi.Vst.Core.VstTimeInfoFlags filterFlags)
{
RaisePluginCalled("GetTimeInfo(" + filterFlags + ")");
return null; // Cannot be null here
}
Create a new VstTimeInfo
object to fix it.
You could just return an empty object? return new VstTimeInfo();
new VstTimeInfo
{
SamplePosition = 0.0,
SampleRate = 44100,
NanoSeconds = 0.0,
PpqPosition = 0.0,
Tempo = 120.0,
BarStartPosition = 0.0,
CycleStartPosition = 0.0,
CycleEndPosition = 0.0,
TimeSignatureNumerator = 4,
TimeSignatureDenominator = 4,
SmpteOffset = 0,
SmpteFrameRate = VstSmpteFrameRate.Smpte24fps,
SamplesToNearestClock = 0,
Flags = 0
};
Maybe not a good way, but it works.
Describe the bug
To Reproduce
Jacobi.Vst.Samples.Host
.Process Noise
.The
Audio Input Count
is 0 and theAudio Output Count
is 2.