Exemple #1
0
        public EditorFrame(INaudioVstContainer owner, VstPlugin ctx) : this()
        {
            Context      = ctx;
            VstContainer = owner;
//			plugin.SetBlockSize(512);
            Context.InitializeComboBox(-1, comboBox1);
        }
 public static void Initialize(INaudioVstContainer owner, VstPlugin ctx)
 {
     PluginProgram pgm = new PluginProgram();
     pgm.Plugin = ctx;
     ctx.PluginCommandStub.SetBlockSize(512);
     owner.VstHost.ProcessIdle();
     pgm.PgmInit(owner,ctx,-1);
 }
 public EditorFrame(INaudioVstContainer owner, VstPlugin ctx)
     : this()
 {
     Context = ctx;
     VstContainer = owner;
     //			plugin.SetBlockSize(512);
     Context.InitializeComboBox(-1,comboBox1);
 }
Exemple #4
0
        static public void Initialize(INaudioVstContainer owner, VstPlugin ctx)
        {
            PluginProgram pgm = new PluginProgram();

            pgm.Plugin = ctx;
            ctx.PluginCommandStub.SetBlockSize(512);
            owner.VstHost.ProcessIdle();
            pgm.PgmInit(owner, ctx, -1);
        }
 void PgmInit(INaudioVstContainer owner, VstPlugin Context, int selectedPgm)
 {
     if (selectedPgm!=-1) {
         VstCCPgm backupPgm = new VstCCPgm( Context, selectedPgm );
         pgmBackup = backupPgm.GetChunk(true);
     }
     Notify("Initialized");
     //			foreach (VstCCPgm program in VstCCPgm.EnumPrograms(Context))
     //				comboBox1.Items.Add(program);
     //			if (selectedPgm != -1) comboBox1.SelectedIndex = selectedPgm;
     //			comboBox1.SelectedIndexChanged += new EventHandler(PgmChanged);
 }
Exemple #6
0
        void PgmInit(INaudioVstContainer owner, VstPlugin Context, int selectedPgm)
        {
            if (selectedPgm != -1)
            {
                VstCCPgm backupPgm = new VstCCPgm(Context, selectedPgm);
                pgmBackup = backupPgm.GetChunk(true);
            }
            Notify("Initialized");
//			foreach (VstCCPgm program in VstCCPgm.EnumPrograms(Context))
//				comboBox1.Items.Add(program);
//			if (selectedPgm != -1) comboBox1.SelectedIndex = selectedPgm;
            //			comboBox1.SelectedIndexChanged += new EventHandler(PgmChanged);
        }
 VstEditorViewer( INaudioVstContainer host , IVstPluginContext plugin )
 {
     this.Host = host;
     this.Plugin = plugin;
 }
Exemple #8
0
 //
 // .ctor
 // ==========
 /// <summary>
 /// Initiailzes a new HostCommandStub, SampleTime info and assigns a default handler to
 /// PluginCalledEventArgs (which isn't used any more).
 /// </summary>
 public NAudioVST(INaudioVstContainer parent)
 {
     this.parent = parent;
     this.vstHostCommandStub = new HostCommandStub(this);
 }
 VstEditorViewer(INaudioVstContainer host, IVstPluginContext plugin)
 {
     this.Host   = host;
     this.Plugin = plugin;
 }
Exemple #10
0
        //
        // .ctor
        // ==========

        /// <summary>
        /// Initiailzes a new HostCommandStub, SampleTime info and assigns a default handler to
        /// PluginCalledEventArgs (which isn't used any more).
        /// </summary>
        public NAudioVST(INaudioVstContainer parent)
        {
            this.parent             = parent;
            this.vstHostCommandStub = new HostCommandStub(this);
        }
Exemple #11
0
 public VstPlugin(string path, INaudioVstContainer host)
 {
     this.Host = host;
     CreateContext(path);
 }
 public VstPluginManager(INaudioVstContainer container)
 {
     Parent = container;
 }
Exemple #13
0
 public VstPluginManager(INaudioVstContainer container)
 {
     Parent = container;
 }