public Averager(int _sampleRate, int __len, AveragerCallback _callback) { averager = null; averagerName = ""; callback = _callback; sampleRate = _sampleRate; _len = __len; removeDC = false; DCStripper = new BiQuad(sampleRate, BiQuad.BiQuadOrder.Second, BiQuad.BiQuadMode.LowPass, 10.0, 0.71); }
public void select(string _selection) { if (averager != null && _selection.Equals(averagerName)) { return; } for (int i = 0; i < list.Count; i++) { if (list[i].Equals(_selection)) { Type T = classlist[i]; averagerName = list[i]; object[] ol = new object[2] { this, _len }; averager = (BaseAverager)Activator.CreateInstance(classlist[i], ol); // averager.len = _len; } } }