public SimpleStreamer(RecordingAudioProcessor audioProcessor, String Host, int Port) { _audioProcessor = audioProcessor; _recordingMode = RecordingMode.Audio; _udpClient = new UdpClient(); _port = Port; _udpEP = new IPEndPoint(IPAddress.Parse(Host), Port); }
public BinaryDataReceiver(ISharpControl control, RecordingMode mode, WavSampleFormat format) { this.control = control; if (mode == RecordingMode.Audio) { _audioProcessor = new RecordingAudioProcessor(); _audioProcessor.Enabled = true; control.RegisterStreamHook((object)this._audioProcessor, ProcessorType.FilteredAudioOutput); SampleRate = (double)control.AudioSampleRate; UnityGain = false; } else { _iqProcessor = new RecordingIQProcessor(); _iqProcessor.Enabled = true; control.RegisterStreamHook((object)this._iqProcessor, ProcessorType.RawIQ); SampleRate = control.RFBandwidth; FrequencyOffset = control.IFOffset; } this._recordingMode = mode; this._wavSampleFormat = format; }
public SimpleUDPAudio(RecordingAudioProcessor audioProcessor) { _AFProcessor = audioProcessor; _recordingMode = RecordingMode.Audio; }