Exemple #1
0
 public bool MoveDown(Effect effect)
 {
     lock (effectLock)
     {
         return effects.MoveDown(effect);
     }
 }
Exemple #2
0
 public void AddEffect(Effect effect)
 {
     InitialiseEffect(effect);
     lock (effectLock)
     {
         this.effects.Add(effect);
     }
 }
Exemple #3
0
 public void Initialize(Effect effect)
 {
     this.effect = effect;
     flowLayoutPanel1.Controls.Clear();
     foreach (Slider slider in effect.Sliders)
     {
         EffectSliderPanel panel = new EffectSliderPanel();
         panel.Initialize(slider);
         panel.ValueChanged += new EventHandler(panel_ValueChanged);
         flowLayoutPanel1.Controls.Add(panel);
     }
 }
Exemple #4
0
        public void AddEffect(Effect effect)
        {
            if (effectStream != null)
            {
                effectStream.AddEffect(effect);
            }
            else
            {
                effects.Add(effect);
            }

            RIAddEffect(effect.Name);
        }
Exemple #5
0
 public EffectStream(Effect effect, WaveStream sourceStream)
     : this(sourceStream)
 {
     AddEffect(effect);
 }
Exemple #6
0
 private void InitialiseEffect(Effect effect)
 {
     effect.SampleRate = WaveFormat.SampleRate;
     effect.Init();
     effect.Slider();
 }
Exemple #7
0
 public bool RemoveEffect(Effect effect)
 {
     lock (effectLock)
     {
         return this.effects.Remove(effect);
     }
 }
Exemple #8
0
 public void Clear()
 {
     this.effect = null;
     flowLayoutPanel1.Controls.Clear();
 }
Exemple #9
0
 private void MoveEffect(Effect selectedEffect, int index, int newIndex)
 {
     bool isChecked = checkedListBox1.GetItemChecked(index);
     checkedListBox1.Items.Remove(selectedEffect);
     checkedListBox1.Items.Insert(newIndex, selectedEffect);
     checkedListBox1.SetItemChecked(newIndex, isChecked);
     checkedListBox1.SelectedIndex = newIndex;
 }
Exemple #10
0
        public void RemoveEffect(Effect effect)
        {
            if (effectStream != null)
            {
                effectStream.RemoveEffect(effect);
            }
            else
            {
                effects.Remove(effect);
            }

            RIRemoveEffect(effect.Name);
        }
Exemple #11
0
 public bool MoveUp(Effect effect)
 {
     if (effectStream != null)
     {
         return effectStream.MoveUp(effect);
     }
     else
     {
         return effects.MoveUp(effect);
     }
 }