Permalink
Browse files

Add extension support for 8.3 filenames (c16, c8).

  • Loading branch information...
1 parent 4536200 commit 0d09e12bb87b57004bb4539b05c816dd9cce60f2 @jboone jboone committed May 31, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 inputsource.cpp
View
@@ -125,10 +125,10 @@ void InputSource::openFile(const char *filename)
if ((suffix == "cfile") || (suffix == "cf32") || (suffix == "fc32")) {
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexF32SampleAdapter());
}
- else if ((suffix == "cs16") || (suffix == "sc16")) {
+ else if ((suffix == "cs16") || (suffix == "sc16") || (suffix == "c16")) {
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexS16SampleAdapter());
}
- else if ((suffix == "cs8") || (suffix == "sc8")) {
+ else if ((suffix == "cs8") || (suffix == "sc8") || (suffix == "c8")) {
sampleAdapter = std::unique_ptr<SampleAdapter>(new ComplexS8SampleAdapter());
}
else if ((suffix == "cu8") || (suffix == "uc8")) {

0 comments on commit 0d09e12

Please sign in to comment.