Allow SampleInfo to specify fallback sample lookup names

This commit is contained in:
Dean Herbert 2020-10-29 16:32:03 +09:00
parent fb82c043a5
commit b49a579411

View File

@ -10,14 +10,14 @@ namespace osu.Game.Audio
/// </summary>
public class SampleInfo : ISampleInfo
{
private readonly string sampleName;
private readonly string[] sampleNames;
public SampleInfo(string sampleName)
public SampleInfo(params string[] sampleNames)
{
this.sampleName = sampleName;
this.sampleNames = sampleNames;
}
public IEnumerable<string> LookupNames => new[] { sampleName };
public IEnumerable<string> LookupNames => sampleNames;
public int Volume { get; } = 100;
}