mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-17 18:27:56 -05:00
Reformat code with clang format
This commit is contained in:
@ -1,21 +1,20 @@
|
||||
#include "AssetDumperSndBank.h"
|
||||
|
||||
#include <fstream>
|
||||
#include <filesystem>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Csv/CsvStream.h"
|
||||
#include "ObjContainer/SoundBank/SoundBank.h"
|
||||
#include "Sound/WavWriter.h"
|
||||
#include "Utils/ClassUtils.h"
|
||||
|
||||
#include <filesystem>
|
||||
#include <fstream>
|
||||
#include <unordered_set>
|
||||
|
||||
using namespace T6;
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
namespace
|
||||
{
|
||||
const std::string ALIAS_HEADERS[]
|
||||
{
|
||||
const std::string ALIAS_HEADERS[]{
|
||||
"# name",
|
||||
"# file",
|
||||
"# template",
|
||||
@ -81,25 +80,13 @@ namespace
|
||||
"# snapshot",
|
||||
};
|
||||
|
||||
const std::string PREFIXES_TO_DROP[]
|
||||
{
|
||||
const std::string PREFIXES_TO_DROP[]{
|
||||
"raw/",
|
||||
"devraw/",
|
||||
};
|
||||
|
||||
constexpr size_t FRAME_RATE_FOR_INDEX[]
|
||||
{
|
||||
8000,
|
||||
12000,
|
||||
16000,
|
||||
24000,
|
||||
32000,
|
||||
44100,
|
||||
48000,
|
||||
96000,
|
||||
192000
|
||||
};
|
||||
}
|
||||
constexpr size_t FRAME_RATE_FOR_INDEX[]{8000, 12000, 16000, 24000, 32000, 44100, 48000, 96000, 192000};
|
||||
} // namespace
|
||||
|
||||
class AssetDumperSndBank::Internal
|
||||
{
|
||||
@ -286,11 +273,7 @@ class AssetDumperSndBank::Internal
|
||||
if (soundFile.m_entry.frameRateIndex >= std::extent_v<decltype(FRAME_RATE_FOR_INDEX)>)
|
||||
return;
|
||||
|
||||
const WavMetaData metaData{
|
||||
soundFile.m_entry.channelCount,
|
||||
FRAME_RATE_FOR_INDEX[soundFile.m_entry.frameRateIndex],
|
||||
bitsPerSample
|
||||
};
|
||||
const WavMetaData metaData{soundFile.m_entry.channelCount, FRAME_RATE_FOR_INDEX[soundFile.m_entry.frameRateIndex], bitsPerSample};
|
||||
|
||||
writer.WritePcmHeader(metaData, soundFile.m_entry.size);
|
||||
|
||||
|
Reference in New Issue
Block a user