OpenAssetTools/src/ObjCommon/Game/T6/SoundConstantsT6.h

198 lines
4.2 KiB
C++

#pragma once
#include "Game/T6/T6.h"
#include <type_traits>
namespace T6
{
// From SndDriverGlobals
inline constexpr const char* SOUND_GROUPS[]{
// clang-format off
"grp_reference",
"grp_master",
"grp_wpn_lfe",
"grp_lfe",
"grp_hdrfx",
"grp_music",
"grp_voice",
"grp_set_piece",
"grp_igc",
"grp_mp_game",
"grp_explosion",
"grp_player_impacts",
"grp_scripted_moment",
"grp_menu",
"grp_whizby",
"grp_weapon",
"grp_vehicle",
"grp_impacts",
"grp_foley",
"grp_destructible",
"grp_physics",
"grp_ambience",
"grp_alerts",
"grp_air",
"grp_bink",
"grp_announcer",
// clang-format on
};
// From SndDriverGlobals
inline constexpr const char* SOUND_CURVES[]{
"default",
"defaultmin",
"allon",
"alloff",
"rcurve0",
"rcurve1",
"rcurve2",
"rcurve3",
"rcurve4",
"rcurve5",
"steep",
"sindelay",
"cosdelay",
"sin",
"cos",
"rev60",
"rev65",
};
// From SndDriverGlobals
inline constexpr const char* SOUND_DUCK_GROUPS[]{
"snp_alerts_gameplay",
"snp_ambience",
"snp_claw",
"snp_destructible",
"snp_dying",
"snp_dying_ice",
"snp_evt_2d",
"snp_explosion",
"snp_foley",
"snp_grenade",
"snp_hdrfx",
"snp_igc",
"snp_impacts",
"snp_menu",
"snp_movie",
"snp_music",
"snp_never_duck",
"snp_player_dead",
"snp_player_impacts",
"snp_scripted_moment",
"snp_set_piece",
"snp_special",
"snp_vehicle",
"snp_vehicle_interior",
"snp_voice",
"snp_weapon_decay_1p",
"snp_whizby",
"snp_wpn_1p",
"snp_wpn_3p",
"snp_wpn_turret",
"snp_x2",
"snp_x3",
};
// From SndDriverGlobals
inline constexpr const char* SOUND_PANS[]{
"default",
"music",
"wpn_all",
"wpn_fnt",
"wpn_rear",
"wpn_left",
"wpn_right",
"music_all",
"fly_foot_all",
"front",
"back",
"front_mostly",
"back_mostly",
"all",
"center",
"front_and_center",
"lfe",
"quad",
"front_mostly_some_center",
"front_halfback",
"halffront_back",
"test",
"brass_right",
"brass_left",
"veh_back",
"tst_left",
"tst_center",
"tst_right",
"tst_surround_left",
"tst_surround_right",
"tst_lfe",
"pip",
"movie_vo",
};
inline constexpr const char* SOUND_LIMIT_TYPES[]{
"none",
"oldest",
"reject",
"priority",
};
static_assert(std::extent_v<decltype(SOUND_LIMIT_TYPES)> == SND_LIMIT_COUNT);
// From executable
inline constexpr const char* SOUND_MOVE_TYPES[]{
"none",
"left_player",
"center_player",
"right_player",
"random",
"left_shot",
"center_shot",
"right_shot",
};
inline constexpr const char* SOUND_LOAD_TYPES[]{
"unknown",
"loaded",
"streamed",
"primed",
};
static_assert(std::extent_v<decltype(SOUND_LOAD_TYPES)> == SA_COUNT);
inline constexpr const char* SOUND_BUS_IDS[]{
"bus_reverb",
"bus_fx",
"bus_voice",
"bus_pfutz",
"bus_hdrfx",
"bus_ui",
"bus_music",
"bus_movie",
"bus_reference",
};
static_assert(std::extent_v<decltype(SOUND_BUS_IDS)> == SND_BUS_COUNT);
// From executable
inline constexpr const char* SOUND_RANDOMIZE_TYPES[]{
"volume",
"pitch",
"variant",
};
inline constexpr const char* SOUND_NO_YES[]{
"no",
"yes",
};
inline constexpr const char* SOUND_LOOP_TYPES[]{
"nonlooping",
"looping",
};
inline constexpr const char* SOUND_PAN_TYPES[]{
"2d",
"3d",
};
} // namespace T6