private void Ddc2_AudioDataRecieved(object sender, AudioCallbackArgs e) { if (DataChunkRecieved == null) { return; } var data = UseFilteredDate ? FloatConverter.Float32ToPcm16BufferReady(e.FilteredData) : FloatConverter.Float32ToPcm16BufferReady(e.Data); DataChunkRecieved(this, new ChunkArgs(data, e.SamplingRate)); }
private void ProvideRawData(Ddc2CallbackArgs e) { if (!RawProvider || DataChunkRecieved == null) { return; } var iqRate = e.SamplingRate; iqRate = SeperateIq ? iqRate : iqRate * 2; var data = FloatConverter.Float32ToPcm16BufferReady(e.Data); DataChunkRecieved(this, new ChunkArgs(data, iqRate)); }