Advertisement
prog

Untitled

Jul 27th, 2011
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1.                 var sample = buffer[i];
  2.                 Detector.SampleRate = _samplesPerSec;
  3.  
  4.                 sample.Real = iDcRemover.Process(sample.Real);
  5.                 sample.Imag = qDcRemover.Process(sample.Imag);
  6.  
  7.                 _localOscillator.Tick();
  8.                 sample = sample * _localOscillator;
  9.  
  10.                 if (Filter)
  11.                 {
  12.                     sample.Real = iFilter.Process(sample.Real);
  13.                     sample.Imag = qFilter.Process(sample.Imag);
  14.                 }
  15.  
  16.                 demod[i] = Detector.Demodulate(sample);
  17.  
  18.                 demod[i] = audioLowPassFilter.Process(demod[i]);
  19.                 demod[i] = agc.Process(demod[i]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement