override public void OnEffectsEvent(object sender, EffectsEventArgs e) { lock (_lock) { _voiceOutput.UpdateSoundConfig(e.effects.SoundEffects.Count > 0, _conf.Update(e.effects)); } }
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); } } } }
override public void OnEffectsEvent(object sender, EffectsEventArgs e) { /*lock (_lock) * { * _currentRow_conf.Update(e.effects); * _voiceOutput.UpdateSoundConfig(); * }*/ }
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); } }
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); } }
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); } }
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); } }
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); } }
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); } }
virtual public void OnEffectsEvent(object sender, EffectsEventArgs e) { }