I have just generated a plugin based on VstNetAudioPlugin template in Visual Studio 2012. I changed only the UniquePluginId in Plugin.cs. After that i was able to compile the project. Everything seems to be ok but i cannot load it in
a host, i tried with Ableton and with the sample host as well. The sample host says the error happens at line #37 in AudioProcessor.cs.
/// Default constructor.
public AudioProcessor(Plugin plugin) : base(AudioInputCount, AudioOutputCount, InitialTailSize)
_plugin = plugin;
_sequencer = _plugin.Host.GetInstance<IVstHostSequencer>(); // this is line #37
// TODO: We use one delay object to process two audio channels.
// Typically you would use dedicated DSP objects for each channel.
Delay = new Delay(plugin);
// TODO: change this to your specific needs.
_defaultTimeInfoFlags = VstTimeInfoFlags.ClockValid;
...here _plugin.Host is null, i do not know why. :(
Could you please help me with this?
Thanks in advance,