SDRSharper/Plugins/SDRSharper.WaveRecorder/SDRSharp.WavRecorder/RecordingIQObserver.cs
SDRSharpR c07e6e6034 SDRSharper (SDRSharp Remake) Full Source (VS2017)
SDRSharper (SDRSharp Remake) Full Source (VS2017)
2018-03-26 14:02:05 -07:00

49 lines
737 B
C#

using SDRSharp.Radio;
namespace SDRSharp.WavRecorder
{
public class RecordingIQObserver : IIQProcessor, IBaseProcessor
{
public unsafe delegate void IQReadyDelegate(Complex* buffer, int length);
private volatile bool _enabled;
private double _sampleRate;
public bool Enabled
{
get
{
return this._enabled;
}
set
{
this._enabled = value;
}
}
public double SampleRate
{
get
{
return this._sampleRate;
}
set
{
this._sampleRate = value;
}
}
public event IQReadyDelegate IQReady;
public unsafe void Process(Complex* buffer, int length)
{
IQReadyDelegate iQReady = this.IQReady;
if (iQReady != null)
{
this.IQReady(buffer, length);
}
}
}
}