diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 01:54:37 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-05-11 01:54:37 +0100 |
commit | 2dba51a6a281573ea40cc52c80d10155387d4720 (patch) | |
tree | d6040ec27d365b0facc18f6f1b761ff5c0b403db /NorthstarDedicatedTest/audio.cpp | |
parent | 5644c1aaabb9487ef2a4c3e5110c8a21bf7b6a59 (diff) | |
download | NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.tar.gz NorthstarLauncher-2dba51a6a281573ea40cc52c80d10155387d4720.zip |
normalise mod fs paths to be lowercase
Diffstat (limited to 'NorthstarDedicatedTest/audio.cpp')
-rw-r--r-- | NorthstarDedicatedTest/audio.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/NorthstarDedicatedTest/audio.cpp b/NorthstarDedicatedTest/audio.cpp index 20ea8467..f9db1ee6 100644 --- a/NorthstarDedicatedTest/audio.cpp +++ b/NorthstarDedicatedTest/audio.cpp @@ -230,10 +230,8 @@ EventOverrideData::EventOverrideData(const std::string& data, const fs::path& pa } // read from after the header first to preserve the empty header, then read the header last - wavStream.seekg(sizeof(EMPTY_WAVE), std::ios::beg); - wavStream.read(&data[sizeof(EMPTY_WAVE)], fileSize - sizeof(EMPTY_WAVE)); wavStream.seekg(0, std::ios::beg); - wavStream.read(data, sizeof(EMPTY_WAVE)); + wavStream.read(data, fileSize); wavStream.close(); spdlog::info("Finished async read of audio sample {}", pathString); |