// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Audio.Sample; namespace osu.Game.Audio { [Serializable] public class SampleInfo { public const string HIT_WHISTLE = @"hitwhistle"; public const string HIT_FINISH = @"hitfinish"; public const string HIT_NORMAL = @"hitnormal"; public const string HIT_CLAP = @"hitclap"; public SampleChannel GetChannel(SampleManager manager) { var channel = manager.Get($"Gameplay/{Bank}-{Name}"); channel.Volume.Value = Volume / 100.0; return channel; } /// /// The bank to load the sample from. /// public string Bank; /// /// The name of the sample to load. /// public string Name; /// /// The sample volume. /// public int Volume; } }