Allow SampleInfo to specify fallback sample lookup names

This commit is contained in:
Dean Herbert 2020-10-29 16:32:03 +09:00
parent c0960e60cb
commit c9a85587fb
1 changed files with 4 additions and 4 deletions

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