From eac0dac9b2134db0f8c222e1d89ce4909dc26cb9 Mon Sep 17 00:00:00 2001 From: Ralty <78720179+Raltyro@users.noreply.github.com> Date: Sun, 29 Mar 2026 14:44:35 +0700 Subject: [PATCH] Add Flag DEFAULT_SOUND_TIME_SCALED_PITCH --- source/funkin/backend/system/Flags.hx | 4 ++++ 1 file changed, 4 insertions(+) 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 {