Exemplo n.º 1
0
 override public void OnEffectsEvent(object sender, EffectsEventArgs e)
 {
     lock (_lock)
     {
         _voiceOutput.UpdateSoundConfig(e.effects.SoundEffects.Count > 0, _conf.Update(e.effects));
     }
 }
Exemplo n.º 2
0
 override public void OnEffectsEvent(object sender, EffectsEventArgs e)
 {
     lock (_lock)
     {
         bool newEffects = _conf.Update(e.effects);
         foreach (MediaPlayer pl in _players)
         {
             pl.UpdateSoundConfig(e.effects.SoundEffects.Count > 0, newEffects);
         }
         // _players[0].UpdateSoundConfig(e.effects.SoundEffects.Count > 0, newEffects);
         //_players[1].UpdateSoundConfig(e.effects.SoundEffects.Count > 0, newEffects);
         _rotateSpeed = DefaultRotateSpeed * ((double)_conf.Freqq.Value / (double)44100) * (_rotateSpeed > 0 ? 1 : -1);
         if (e.effects.Reverse.HasValue && e.effects.Reverse.Value ^ (_rotateSpeed < 0))
         {
             _rotateSpeed *= -1;
             if (_vinilPlayer != null && _vinilPlayer.IsPlaying)
             {
                 _vinilPlayer.Stop();
                 int pos = _vinilBytesNum - _vinilPlayer.Pos - 1;
                 _vinilPlayer = _players[((int)_vinilPlayer.Tag + 1) % 2];
                 _vinilPlayer.Play(true, pos);
             }
         }
     }
 }
Exemplo n.º 3
0
 override public void OnEffectsEvent(object sender, EffectsEventArgs e)
 {
     /*lock (_lock)
      * {
      *  _currentRow_conf.Update(e.effects);
      *  _voiceOutput.UpdateSoundConfig();
      * }*/
 }
Exemplo n.º 4
0
        private void DiffusionTrack_ValueChanged(object sender, decimal value)
        {
            Configer conf = new Configer(DiffusionTrack.Value, null, null);

            if (EffectsEvent != null)
            {
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 5
0
        private void SpeedTrack_ValueChanged(object sender, decimal value)
        {
            Configer conf = new Configer(null, 44100 + SpeedTrack.Value * 400, null);

            if (EffectsEvent != null)
            {
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 6
0
        private void VolumeTrack_ValueChanged(object sender, decimal value)
        {
            Configer conf = new Configer(null, null, (VolumeTrack.Value - 100) * 20);

            if (EffectsEvent != null)
            {
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 7
0
        private void DistorsnTrack_ValueChanged(object sender, decimal value)
        {
            Configer conf = new Configer(null, null, null);

            if (EffectsEvent != null)
            {
                conf.SoundEffects[AudioEffects.Distortion] = DistorsnTrack.Value;
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 8
0
        private void ReverseCheckBox_CheckedChanged(object sender, EventArgs e)
        {
            Configer conf = new Configer(null, null, null);

            if (EffectsEvent != null)
            {
                conf.Reverse = ReverseCheckBox.Checked;
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 9
0
        private void ReverbTrack_ValueChanged(object sender, decimal value)
        {
            Configer conf = new Configer(null, null, null);

            if (EffectsEvent != null)
            {
                conf.SoundEffects[AudioEffects.WavesReverb] = ReverbTrack.Value;
                EffectsEventArgs args = new EffectsEventArgs(conf);
                EffectsEvent(this, args);
            }
        }
Exemplo n.º 10
0
 virtual public void OnEffectsEvent(object sender, EffectsEventArgs e)
 {
 }