Exemplo n.º 1
0
        public DspDescriptionStruct *GetDspInfoByType(DSPType type)
        {
            DspDescriptionStruct *ptr;

            library.System_GetDSPInfoByType(Handle, type, &ptr).CheckResult();

            return(ptr);
        }
Exemplo n.º 2
0
 public void SetDSPParameter(int eventID, DSPType dspType, string parameterName, float value, float time = 0f, float curve = 0.5f, GameObject parentGameObject = null)
 {
     if (_forceQueueAllEvents)
     {
         dspParameter = new DSPParameterData();
     }
     dspParameter._dspType   = dspType;
     dspParameter._parameter = parameterName;
     dspParameter._value     = value;
     dspParameter._time      = time;
     dspParameter._curve     = curve;
     PostEvent(eventID, EventAction.SetDSPParameter, dspParameter, parentGameObject);
 }
Exemplo n.º 3
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;
        }
Exemplo n.º 4
0
 public void SetCurrentDSP(DSPType type)
 {
     myDSP.CurrentType = type;
 }
Exemplo n.º 5
0
        private void SelectDsp(object sender, EventArgs e)
        {
            DSPType type = (DSPType)Enum.Parse(typeof(DSPType), dspList.Text);

            myWd.SetCurrentDSP(type);
        }