private void echoA_Click(object sender, System.EventArgs e) { if (echo) { groupA.addDSP(dspecho, ref dspconnectiontemp); } else { dspecho.remove(); } echo = !echo; }
private void reverbA_Click(object sender, System.EventArgs e) { if (reverb) { groupA.addDSP(dspreverb, ref dspconnectiontemp); } else { dspreverb.remove(); } reverb = !reverb; }
private void parameq_CheckedChanged(object sender, System.EventArgs e) { FMOD.RESULT result; bool active = false; result = dspparameq.getActive(ref active); ERRCHECK(result); if (active) { result = dspparameq.remove(); ERRCHECK(result); } else { result = system.addDSP(dspparameq, ref dspconnectiontemp); ERRCHECK(result); } }