Volume should be 0 by default

This commit is contained in:
smoogipoo 2020-12-01 18:09:28 +09:00
parent dda4d76d72
commit 17560aeeea
3 changed files with 4 additions and 3 deletions

View File

@ -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)
}) })
}); });
} }

View File

@ -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;

View File

@ -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;