mirror of
https://github.com/ppy/osu.git
synced 2025-03-16 05:37:19 +08:00
Allow SampleInfo to specify fallback sample lookup names
This commit is contained in:
parent
c0960e60cb
commit
c9a85587fb
@ -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…
x
Reference in New Issue
Block a user