Files
o3de/Gems/AudioSystem/Code/Source/Engine/SoundCVars.h
T
amzn-phist 4407891740 Update audio cvars from legacy to AZ_CVARs (#2182)
* Upgrade s_AudioLoggingOptions to AZ_CVAR

Removes this legacy CVar and reimplements it as an AZ_CVAR with similar
functionality of setting flags using alpha characters.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Upgrade s_DrawAudioDebug to AZ_CVAR

Removes the legacy CVar and reimplements it as an AZ_CVAR with similar
functionality and options.

Additional updates to the logging options CVar to fix up flag enums.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Upgrade s_FileCacheManagerDebugFilter to AZ_CVAR

Removes the legacy CVar and reimplements it as an AZ_CVAR with similar
functionality.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Removal of legacy IConsole dependencies from Audio

Moves a g_languageAudio cvar from CrySystem to AudioSystem.
Convert all cvar commands to AZ_CONSOLEFREEFUNC's.
Remove IConsole.h includes from source files.
Removes the CSoundCVars class.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>

* Minor update to cvar comments etc.

Signed-off-by: amzn-phist <52085794+amzn-phist@users.noreply.github.com>
2021-07-16 12:25:32 -05:00

46 lines
1.6 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <ATLUtils.h>
#include <AzCore/Console/IConsole.h>
namespace Audio::CVars
{
AZ_CVAR_EXTERNED(AZ::u64, s_ATLMemorySize);
AZ_CVAR_EXTERNED(AZ::u64, s_FileCacheManagerMemorySize);
AZ_CVAR_EXTERNED(AZ::u64, s_AudioObjectPoolSize);
AZ_CVAR_EXTERNED(AZ::u64, s_AudioEventPoolSize);
AZ_CVAR_EXTERNED(bool, s_EnableRaycasts);
AZ_CVAR_EXTERNED(float, s_RaycastMinDistance);
AZ_CVAR_EXTERNED(float, s_RaycastMaxDistance);
AZ_CVAR_EXTERNED(float, s_RaycastCacheTimeMs);
AZ_CVAR_EXTERNED(float, s_RaycastSmoothFactor);
AZ_CVAR_EXTERNED(float, s_PositionUpdateThreshold);
AZ_CVAR_EXTERNED(float, s_VelocityTrackingThreshold);
AZ_CVAR_EXTERNED(AZ::u32, s_AudioProxiesInitType);
AZ_CVAR_EXTERNED(AZ::CVarFixedString, g_languageAudio);
#if !defined(AUDIO_RELEASE)
AZ_CVAR_EXTERNED(bool, s_IgnoreWindowFocus);
AZ_CVAR_EXTERNED(bool, s_ShowActiveAudioObjectsOnly);
AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_AudioTriggersDebugFilter);
AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_AudioObjectsDebugFilter);
AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_AudioLoggingOptions);
AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_DrawAudioDebug);
inline Audio::Flags<AZ::u32> s_debugDrawOptions;
AZ_CVAR_EXTERNED(AZ::CVarFixedString, s_FileCacheManagerDebugFilter);
inline Audio::Flags<AZ::u32> s_fcmDrawOptions;
#endif // !AUDIO_RELEASE
} // namespace Audio::CVars