diff --git a/README.md b/README.md index 05dd8de..cd8ef6f 100644 --- a/README.md +++ b/README.md @@ -23,12 +23,12 @@ Build instructions can be found here: https://github.com/miek/inspectrum/wiki/Bu ## Input inspectrum supports the following file types: * `*.sigmf-meta, *.sigmf-data` - SigMF recordings - * `*.cf32`, `*.cfile` - Complex 32-bit floating point samples (GNU Radio, osmocom_fft) - * `*.cf64` - Complex 64-bit floating point samples - * `*.cs32` - Complex 16-bit signed integer samples (SDRAngel) - * `*.cs16` - Complex 16-bit signed integer samples (BladeRF) - * `*.cs8` - Complex 8-bit signed integer samples (HackRF) - * `*.cu8` - Complex 8-bit unsigned integer samples (RTL-SDR) + * `*.cf32`, `*.fc32`, `*.cfile` - Complex 32-bit floating point samples (GNU Radio, osmocom_fft) + * `*.cf64`, `*.fc64` - Complex 64-bit floating point samples + * `*.cs32`, `*.sc32`, `*.c32` - Complex 32-bit signed integer samples (SDRAngel) + * `*.cs16`, `*.sc16`, `*.c16` - Complex 16-bit signed integer samples (BladeRF) + * `*.cs8`, `*.sc8`, `*.c8` - Complex 8-bit signed integer samples (HackRF) + * `*.cu8`, `*.uc8` - Complex 8-bit unsigned integer samples (RTL-SDR) * `*.f32` - Real 32-bit floating point samples * `*.f64` - Real 64-bit floating point samples (MATLAB) * `*.s16` - Real 16-bit signed integer samples diff --git a/src/inputsource.cpp b/src/inputsource.cpp index f1a1453..df9b1b6 100644 --- a/src/inputsource.cpp +++ b/src/inputsource.cpp @@ -362,6 +362,9 @@ void InputSource::openFile(const char *filename) else if ((suffix == "cf64") || (suffix == "fc64")) { sampleAdapter = std::make_unique(); } + else if ((suffix == "cs32") || (suffix == "sc32") || (suffix == "c32")) { + sampleAdapter = std::make_unique(); + } else if ((suffix == "cs16") || (suffix == "sc16") || (suffix == "c16")) { sampleAdapter = std::make_unique(); } diff --git a/src/main.cpp b/src/main.cpp index 8b0a30d..7d3e90b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -41,7 +41,7 @@ int main(int argc, char *argv[]) QCoreApplication::translate("main", "Hz")); parser.addOption(rateOption); QCommandLineOption formatOption(QStringList() << "f" << "format", - QCoreApplication::translate("main", "Set file format."), + QCoreApplication::translate("main", "Set file format, options: cfile/cf32/fc32, cf64/fc64, cs32/sc32/c32, cs16/sc16/c16, cs8/sc8/c8, cu8/uc8, f32, f64, s16, s8, u8, sigmf-meta/sigmf-data."), QCoreApplication::translate("main", "fmt")); parser.addOption(formatOption);