1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 12:57:36 +08:00

Change volume parameter to double

This commit is contained in:
Dean Herbert 2024-07-08 13:47:04 +09:00
parent 2bfa03c6d8
commit 0067450b22
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View File

@ -33,7 +33,7 @@ namespace osu.Game.Tests.Visual.Menus
{
duckOp1 = Game.MusicController.Duck(new DuckParameters
{
DuckVolumeTo = 0.5f,
DuckVolumeTo = 0.5,
});
});
@ -43,7 +43,7 @@ namespace osu.Game.Tests.Visual.Menus
{
duckOp2 = Game.MusicController.Duck(new DuckParameters
{
DuckVolumeTo = 0.2f,
DuckVolumeTo = 0.2,
});
});
@ -73,7 +73,7 @@ namespace osu.Game.Tests.Visual.Menus
{
duckOp1 = Game.MusicController.Duck(new DuckParameters
{
DuckVolumeTo = 0.5f,
DuckVolumeTo = 0.5,
});
});
@ -83,7 +83,7 @@ namespace osu.Game.Tests.Visual.Menus
{
duckOp2 = Game.MusicController.Duck(new DuckParameters
{
DuckVolumeTo = 0.2f,
DuckVolumeTo = 0.2,
});
});
@ -118,7 +118,7 @@ namespace osu.Game.Tests.Visual.Menus
{
duckOp1 = Game.MusicController.Duck(new DuckParameters
{
DuckVolumeTo = 0.2f,
DuckVolumeTo = 0.2,
DuckCutoffTo = AudioFilter.MAX_LOWPASS_CUTOFF,
DuckDuration = 500,
});

View File

@ -494,7 +494,7 @@ namespace osu.Game.Overlays
/// The final volume which should be reached during ducking, when 0 is silent and 1 is original volume.
/// Defaults to 25%.
/// </summary>
public float DuckVolumeTo = 0.25f;
public double DuckVolumeTo = 0.25;
/// <summary>
/// The low-pass cutoff frequency which should be reached during ducking. If not required, set to <see cref="AudioFilter.MAX_LOWPASS_CUTOFF"/>.