Commit 42fac4e4 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28344: audiofile: cleanup

parent 25af87d0
......@@ -80,13 +80,10 @@ AudioFile::AudioFile(const std::string &fileName, unsigned int sampleRate) :
hasHeader = false;
} else if (filepath_.find(".au") != std::string::npos) {
format = SF_FORMAT_AU;
hasHeader = true;
} else if (filepath_.find(".flac") != std::string::npos) {
format = SF_FORMAT_FLAC;
hasHeader = true;
} else if (filepath_.find(".ogg") != std::string::npos) {
format = SF_FORMAT_OGG;
hasHeader = true;
} else {
WARN("No file extension, guessing WAV");
format = SF_FORMAT_WAV;
......@@ -102,7 +99,6 @@ AudioFile::AudioFile(const std::string &fileName, unsigned int sampleRate) :
case 1:
case 2:
break;
default:
throw AudioFileException("Unsupported number of channels");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment