Simplify and tidy sample retrieval

Less static weirdness
This commit is contained in:
Dean Herbert
2017-12-23 16:46:02 +09:00
parent 5026c7a95e
commit 9ca03c0209
4 changed files with 25 additions and 21 deletions

View File

@ -5,7 +5,6 @@ using System;
using osu.Framework.Audio;
using osu.Framework.Audio.Sample;
using osu.Framework.Configuration;
using osu.Game.Beatmaps.ControlPoints;
namespace osu.Game.Audio
{
@ -17,16 +16,6 @@ namespace osu.Game.Audio
public const string HIT_NORMAL = @"hitnormal";
public const string HIT_CLAP = @"hitclap";
public static SampleInfo FromSoundPoint(SampleControlPoint samplePoint, string sampleName = HIT_NORMAL)
{
return new SampleInfo
{
Bank = samplePoint.SampleBank,
Name = sampleName,
Volume = samplePoint.SampleVolume,
};
}
public SampleChannel GetChannel(SampleManager manager)
{
var channel = manager.Get($"Gameplay/{Bank}-{Name}");