diff --git a/AudioFile.h b/AudioFile.h index 4b40ea2..b5d2e9b 100644 --- a/AudioFile.h +++ b/AudioFile.h @@ -460,21 +460,21 @@ bool AudioFile::load (std::string filePath) std::vector fileData; - file.unsetf(std::ios::skipws); + file.unsetf (std::ios::skipws); - file.seekg(0, std::ios::end); + file.seekg (0, std::ios::end); size_t length = file.tellg(); - file.seekg(0, std::ios::beg); + file.seekg (0, std::ios::beg); // allocate - fileData.resize(length); + fileData.resize (length); - file.read(reinterpret_cast(fileData.data()), length); + file.read(reinterpret_cast (fileData.data()), length); file.close(); if (file.gcount() != length) { - reportError("ERROR: Couldn't read entire file\n" + filePath); + reportError ("ERROR: Couldn't read entire file\n" + filePath); return false; }