private void checkBoxCompressor_CheckedChanged(object sender, EventArgs e) { if (_comp == null) { _comp = new BASS_BFX_COMPRESSOR(); } if (_stream == 0) { return; } if (checkBoxCompressor.Checked) { _comp.Preset_Medium(); _compHandle = Bass.BASS_ChannelSetFX(_stream, BASSFXType.BASS_FX_BFX_COMPRESSOR, _compPrio); Bass.BASS_FXSetParameters(_compHandle, _comp); } else { Bass.BASS_FXReset(_compHandle); } }
private void checkBoxDAmp_CheckedChanged(object sender, EventArgs e) { comboBoxDynamicAmplification.Enabled = checkBoxDAmp.Checked; if (comboBoxDynamicAmplification.SelectedIndex == -1) { comboBoxDynamicAmplification.SelectedIndex = 0; } if (_stream == 0) { return; } if (checkBoxDAmp.Checked) { SetDAmpPreset(comboBoxDynamicAmplification.SelectedIndex); _dampHandle = Bass.BASS_ChannelSetFX(_stream, BASSFXType.BASS_FX_BFX_DAMP, _dampPrio); Bass.BASS_FXSetParameters(_dampHandle, _damp); } else { Bass.BASS_FXReset(_dampHandle); } }