// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Game.Audio; namespace osu.Game.Beatmaps.ControlPoints { public class SampleControlPoint : ControlPoint { public const string DEFAULT_BANK = "normal"; /// /// The default sample bank at this control point. /// public string SampleBank = DEFAULT_BANK; /// /// The default sample volume at this control point. /// public int SampleVolume = 100; /// /// Create a SampleInfo based on the sample settings in this control point. /// /// The name of the same. /// A populated . public SampleInfo GetSampleInfo(string sampleName = SampleInfo.HIT_NORMAL) => new SampleInfo { Bank = SampleBank, Name = sampleName, Volume = SampleVolume, }; } }