mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 10:27:26 +09:00
Volume should be 0 by default
This commit is contained in:
parent
dda4d76d72
commit
17560aeeea
@ -43,7 +43,7 @@ namespace osu.Game.Rulesets.Catch.Tests
|
|||||||
NewCombo = i % 8 == 0,
|
NewCombo = i % 8 == 0,
|
||||||
Samples = new List<HitSampleInfo>(new[]
|
Samples = new List<HitSampleInfo>(new[]
|
||||||
{
|
{
|
||||||
new HitSampleInfo(HitSampleInfo.HIT_NORMAL, "normal")
|
new HitSampleInfo(HitSampleInfo.HIT_NORMAL, "normal", volume: 100)
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using Newtonsoft.Json;
|
||||||
using osu.Game.Utils;
|
using osu.Game.Utils;
|
||||||
|
|
||||||
namespace osu.Game.Audio
|
namespace osu.Game.Audio
|
||||||
@ -45,7 +46,7 @@ namespace osu.Game.Audio
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public int Volume { get; }
|
public int Volume { get; }
|
||||||
|
|
||||||
public HitSampleInfo(string name, string? bank = null, string? suffix = null, int volume = 100)
|
public HitSampleInfo(string name, string? bank = null, string? suffix = null, int volume = 0)
|
||||||
{
|
{
|
||||||
Name = name;
|
Name = name;
|
||||||
Bank = bank;
|
Bank = bank;
|
||||||
|
@ -479,7 +479,7 @@ namespace osu.Game.Rulesets.Objects.Legacy
|
|||||||
/// </remarks>
|
/// </remarks>
|
||||||
public readonly bool IsLayered;
|
public readonly bool IsLayered;
|
||||||
|
|
||||||
public LegacyHitSampleInfo(string name, string? bank = null, int volume = 100, int customSampleBank = 0, bool isLayered = false)
|
public LegacyHitSampleInfo(string name, string? bank = null, int volume = 0, int customSampleBank = 0, bool isLayered = false)
|
||||||
: base(name, bank, customSampleBank >= 2 ? customSampleBank.ToString() : null, volume)
|
: base(name, bank, customSampleBank >= 2 ? customSampleBank.ToString() : null, volume)
|
||||||
{
|
{
|
||||||
CustomSampleBank = customSampleBank;
|
CustomSampleBank = customSampleBank;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user