2023-06-30 07:03:11 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
2023-06-30 07:17:45 +00:00
|
|
|
using osu.Framework.Allocation;
|
2023-06-30 07:03:11 +00:00
|
|
|
using osu.Game.Audio;
|
|
|
|
using osu.Game.Rulesets.Taiko.UI;
|
|
|
|
using osu.Game.Rulesets.UI;
|
2023-06-30 07:17:45 +00:00
|
|
|
using osu.Game.Skinning;
|
2023-06-30 07:03:11 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Argon
|
|
|
|
{
|
2023-06-30 08:02:08 +00:00
|
|
|
internal partial class ArgonDrumSamplePlayer : DrumSamplePlayer
|
2023-06-30 07:03:11 +00:00
|
|
|
{
|
2023-07-03 05:05:40 +00:00
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(IPooledSampleProvider sampleProvider)
|
|
|
|
{
|
|
|
|
// Warm up pools for non-standard samples.
|
2023-07-07 05:44:44 +00:00
|
|
|
sampleProvider.GetPooledSample(new VolumeAwareHitSampleInfo(new HitSampleInfo(HitSampleInfo.HIT_NORMAL), true));
|
|
|
|
sampleProvider.GetPooledSample(new VolumeAwareHitSampleInfo(new HitSampleInfo(HitSampleInfo.HIT_CLAP), true));
|
|
|
|
sampleProvider.GetPooledSample(new VolumeAwareHitSampleInfo(new HitSampleInfo(HitSampleInfo.HIT_FLOURISH), true));
|
2023-07-03 05:05:40 +00:00
|
|
|
}
|
|
|
|
|
2023-06-30 07:14:52 +00:00
|
|
|
protected override DrumSampleTriggerSource CreateTriggerSource(HitObjectContainer hitObjectContainer, SampleBalance balance) =>
|
|
|
|
new ArgonDrumSampleTriggerSource(hitObjectContainer, balance);
|
2023-06-30 07:03:11 +00:00
|
|
|
}
|
|
|
|
}
|