mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Allow SampleInfo to specify fallback sample lookup names
This commit is contained in:
@ -10,14 +10,14 @@ namespace osu.Game.Audio
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SampleInfo : ISampleInfo
|
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;
|
public int Volume { get; } = 100;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user