void ProgramAction_BackupPrs(int pat) { var pgm = new VstCCPgm(this, (pat != -1) ? pat : 0); pgmBackup = pgm.GetChunk(true); pgm = null; }
void ProgramAction_BackupPgm(int selectedPgm) { var pgm = new VstCCPgm(this, (selectedPgm != -1) ? selectedPgm : 0); pgmBackup = pgm.GetChunk(false); pgm = null; }
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); }