mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Simplify and tidy sample retrieval
Less static weirdness
This commit is contained in:
@ -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}");
|
||||
|
Reference in New Issue
Block a user