Ejemplo n.º 1
0
        private void ChangeDSP(DSPType type)
        {
            if (type == currentType)
            {
                return;
            }
            myDSP.Dispose();
            switch (type)
            {
            case DSPType.CenterCut:
                myDSP = new CenterCut();
                break;

            case DSPType.PitchShiftPV:
                myDSP = new PitchShiftPV();
                break;

            case DSPType.PitchShiftTDSOLA:
                myDSP = new PitchShiftTDSOLA();
                break;

            case DSPType.HighPassFilter:
                myDSP = new HighPassFilter();
                break;

            case DSPType.BandPassFilter:
                myDSP = new BandPassFilter();
                break;

            case DSPType.Butterworth1stLPF:
                myDSP = new Butterworth1stLPF();
                break;

            default:
                myDSP = new Default();
                break;
            }
            currentType = type;
        }
Ejemplo n.º 2
0
 public void Dispose()
 {
     myDSP.Dispose();
     myDSP = null;
 }