input: Default to cf32 file type if extension is unknown

This commit is contained in:
Mike Walters
2016-03-27 16:46:34 +01:00
parent 3dbfaf1bd1
commit 9b774f0845
2 changed files with 2 additions and 1 deletions

View File

@@ -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");