//----------------------------------------------------------------------------- public bool LoadSignalFromFile(string filepath) { if (!IsFileAllowed(filepath)) { return(false); } if (filepath.ToLower().EndsWith(".iq")) { // for now, just fill in some values for testing purposes. (Eventually // we'll prompt the user to provide this info.) HackRFSignal.Settings settings; settings.Frequency = 27000000; settings.SamplesPerSec = 10000000; _signal = new HackRFSignal(settings, filepath); Complex[] samples = new Complex[2048]; _signal.ReadSamples(samples, 0, 2048); return(true); } throw new NotImplementedException("Support for that filetype isn't implemented yet."); }