mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:17:26 +08:00
Allow SampleInfo to specify fallback sample lookup names
This commit is contained in:
parent
fb82c043a5
commit
b49a579411
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user