void Initialize() { combFilters = new Audial.Utils.CombFilter[4]; combFilters[0] = new Audial.Utils.CombFilter(29.7f, 1); combFilters[1] = new Audial.Utils.CombFilter(37.1f, 1); combFilters[2] = new Audial.Utils.CombFilter(41.1f, 1); combFilters[3] = new Audial.Utils.CombFilter(43.7f, 1); Callibrate(); allPassFilters = new Audial.Utils.AllPassFilter[2]; allPassFilters[0] = new Audial.Utils.AllPassFilter(5.0f, 1); allPassFilters[0].SetGainByDecayTime(1.683f); allPassFilters[1] = new Audial.Utils.AllPassFilter(1.7f, 1); allPassFilters[1].SetGainByDecayTime(2.232f); }
void Awake() { sampleRate = Audial.Utils.Settings.SampleRate = AudioSettings.outputSampleRate; combFilter = new Audial.Utils.CombFilter(DelayLengthMS, 0.5f); ChangeDelay(); }
void Awake() { sampleRate = Audial.Utils.Settings.SampleRate = AudioSettings.outputSampleRate; combFilter = new Audial.Utils.CombFilter(DelayLengthMS,0.5f); ChangeDelay(); }