mirror of
https://github.com/ppy/osu
synced 2024-12-16 11:56:31 +00:00
Change volume parameter to double
This commit is contained in:
parent
2bfa03c6d8
commit
0067450b22
@ -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,
|
||||
});
|
||||
|
@ -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"/>.
|
||||
|
Loading…
Reference in New Issue
Block a user