mirror of
https://github.com/miek/inspectrum.git
synced 2026-03-03 23:14:16 +01:00
input: Default to cf32 file type if extension is unknown
This commit is contained in:
@@ -134,7 +134,7 @@ void InputSource::openFile(const char *filename)
|
||||
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexU8SampleAdapter());
|
||||
}
|
||||
else {
|
||||
throw std::runtime_error("Invalid file extension");
|
||||
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexF32SampleAdapter());
|
||||
}
|
||||
|
||||
FILE *file = fopen(filename, "rb");
|
||||
|
||||
Reference in New Issue
Block a user