public SampleControl(Sample sample, SoundEffect soundEffect)
 {
     this.InitializeComponent();
     Sample = sample;
     SoundEffect = soundEffect;
     SampleNameText.Text = Sample.Name;
     SampleWeightSlider.Value = Sample.Weight;
     SampleVolumeSlider.Value = Sample.Volume;
 }
        public SoundEffectControl(SoundEffect soundEffect)
        {
            this.InitializeComponent();
            SoundEffect = soundEffect;
            SliderHigh.Maximum = Settings.Default.MaximumLoop;
            SliderLow.Maximum = Settings.Default.MaximumLoop;

            LoadSoundEffect();
        }
 private void AddSceneButton_Click(object sender, RoutedEventArgs e)
 {
     Scene scene = new Scene();
     Module.Scenes.Add(scene);
     AddSceenControl(scene);
     SoundEffect soundEffect = new SoundEffect();
     scene.SoundEffects.Add(soundEffect);
     Sample sample = new Sample();
     soundEffect.Samples.Add(sample);
     Module.ReverbTime = 0;
     Module.ReverbMix = 0;
 }
Exemplo n.º 4
0
 private void AddSoundEffectControl(SoundEffect soundEffect)
 {
     SoundEffectControl soundEffectControl = new SoundEffectControl(soundEffect);
     SoundEffectsStackPanel.Children.Add(soundEffectControl);
     soundEffectControl.Removed += new EventHandler(soundEffectControl_Removed);
 }
Exemplo n.º 5
0
 private void AddSoundEffectButton_Click(object sender, RoutedEventArgs e)
 {
     SoundEffect soundEffect = new SoundEffect();
     Scene.SoundEffects.Add(soundEffect);
     AddSoundEffectControl(soundEffect);
 }
 private void CreateSampleControl(SoundEffect soundEffect, Sample sample)
 {
     SampleControl sampleControl = new SampleControl(sample, soundEffect);
     SamplesStackPanel.Children.Add(sampleControl);
     sampleControl.Removed += new EventHandler(sampleControl_Removed);
     sampleControl.LoadingSample += new EventHandler(sampleControl_LoadingSample);
 }