Fix constant casing

This commit is contained in:
Bartłomiej Dach 2020-08-15 20:44:02 +02:00
parent 390e872730
commit 5f35b3ebb9
1 changed files with 4 additions and 4 deletions

View File

@ -85,8 +85,8 @@ protected override void LoadComplete()
}
private SkinnableSound spinningSample;
private const float SPINNING_SAMPLE_INITIAL_FREQUENCY = 1.0f;
private const float SPINNING_SAMPLE_MODULATED_BASE_FREQUENCY = 0.5f;
private const float spinning_sample_initial_frequency = 1.0f;
private const float spinning_sample_modulated_base_frequency = 0.5f;
protected override void LoadSamples()
{
@ -106,7 +106,7 @@ protected override void LoadSamples()
{
Volume = { Value = 0 },
Looping = true,
Frequency = { Value = SPINNING_SAMPLE_INITIAL_FREQUENCY }
Frequency = { Value = spinning_sample_initial_frequency }
});
}
}
@ -233,7 +233,7 @@ protected override void Update()
RotationTracker.Tracking = !Result.HasResult && (OsuActionInputManager?.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton) ?? false);
if (spinningSample != null && spinnerFrequencyModulate)
spinningSample.Frequency.Value = SPINNING_SAMPLE_MODULATED_BASE_FREQUENCY + Progress;
spinningSample.Frequency.Value = spinning_sample_modulated_base_frequency + Progress;
}
protected override void UpdateAfterChildren()