Пример #1
0
        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);
        }
Пример #2
0
 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;
         }
     }
 }