File tree Expand file tree Collapse file tree
source/funkin/backend/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,8 @@ class Flags {
107107 public static var DEFAULT_STEPS_PER_BEAT : Int = 4 ;
108108 public static var DEFAULT_LOOP_TIME : Float = 0.0 ;
109109
110+ @:lazy public static var DEFAULT_SOUND_TIME_SCALED_PITCH : Null <Bool > = null ;
111+
110112 public static var SUPPORTED_CHART_RUNTIME_FORMATS : Array <String > = [" Legacy" , " Psych Engine" ];
111113 public static var SUPPORTED_CHART_FORMATS : Array <String > = [" BaseGame" ];
112114
@@ -321,6 +323,8 @@ class Flags {
321323 DEFAULT_GLSL_VERSION = openfl.utils. GLSLSourceAssembler .getDefaultVersion ();
322324 }
323325 }
326+ if (DEFAULT_SOUND_TIME_SCALED_PITCH == null ) DEFAULT_SOUND_TIME_SCALED_PITCH = MOD_API_VERSION >= 2 ;
327+ flixel.sound. FlxSound .defaultTimeScaledPitch = cast DEFAULT_SOUND_TIME_SCALED_PITCH ;
324328 }
325329
326330 public static function loadFromDatas (datas : Array <String >): Map <String , String > {
You can’t perform that action at this time.
0 commit comments