Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void RadioSample(byte[] b, int format)
- {
- var buffer = GetIQ(b, format);
- var demod = new float[buffer.Length];
- for (var i = 0; i < buffer.Length; i++)
- {
- var sample = buffer[i];
- _localOscillator.Tick();
- sample = sample * _localOscillator.Out;
- if (Filter)
- {
- sample.Real = iFilter.Sample(sample.Real);
- sample.Imag = qFilter.Sample(sample.Imag);
- }
- demod[i] = Detector.Demodulate(sample);
- }
- IQToLR(b, format, demod);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement