diff --git a/source/funkin/backend/system/Flags.hx b/source/funkin/backend/system/Flags.hx index e1c6661a..eb243ddd 100644 --- a/source/funkin/backend/system/Flags.hx +++ b/source/funkin/backend/system/Flags.hx @@ -107,6 +107,8 @@ class Flags { public static var DEFAULT_STEPS_PER_BEAT:Int = 4; public static var DEFAULT_LOOP_TIME:Float = 0.0; + @:lazy public static var DEFAULT_SOUND_TIME_SCALED_PITCH:Null = null; + public static var SUPPORTED_CHART_RUNTIME_FORMATS:Array = ["Legacy", "Psych Engine"]; public static var SUPPORTED_CHART_FORMATS:Array = ["BaseGame"]; @@ -321,6 +323,8 @@ class Flags { DEFAULT_GLSL_VERSION = openfl.utils.GLSLSourceAssembler.getDefaultVersion(); } } + if (DEFAULT_SOUND_TIME_SCALED_PITCH == null) DEFAULT_SOUND_TIME_SCALED_PITCH = MOD_API_VERSION >= 2; + flixel.sound.FlxSound.defaultTimeScaledPitch = cast DEFAULT_SOUND_TIME_SCALED_PITCH; } public static function loadFromDatas(datas:Array):Map {