1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

General cleanup.

This commit is contained in:
smoogipooo 2017-04-06 11:54:11 +09:00
parent 2a16eafe8f
commit c65ab5b6f1
3 changed files with 2 additions and 28 deletions

View File

@ -1,21 +0,0 @@
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Audio.Sample;
using osu.Framework.IO.Stores;
namespace osu.Game.Audio
{
public class BeatmapSampleStore : NamespacedResourceStore<SampleChannel>
{
public BeatmapSampleStore(IResourceStore<SampleChannel> store, string ns)
: base(store, ns)
{
}
public SampleChannel Get(SampleInfo sampleInfo)
{
return Get($@"{sampleInfo.Bank}-{sampleInfo.Name}");
}
}
}

View File

@ -32,7 +32,6 @@ namespace osu.Game.Beatmaps.Formats
private LegacySampleBank defaultSampleBank;
private int defaultSampleVolume = 100;
private bool samplesMatchPlaybackRate;
private readonly int beatmapVersion;
@ -81,9 +80,6 @@ namespace osu.Game.Beatmaps.Formats
case @"SampleVolume":
defaultSampleVolume = int.Parse(val);
break;
case "SamplesMatchPlaybackRate":
samplesMatchPlaybackRate = val[0] == '1';
break;
case @"StackLeniency":
beatmap.BeatmapInfo.StackLeniency = float.Parse(val, NumberFormatInfo.InvariantInfo);
break;
@ -247,8 +243,8 @@ namespace osu.Game.Beatmaps.Formats
}
string stringSampleSet = sampleSet.ToString().ToLower();
if (stringSampleSet == "none")
stringSampleSet = "normal";
if (stringSampleSet == @"none")
stringSampleSet = @"normal";
beatmap.TimingInfo.ControlPoints.Add(new ControlPoint
{

View File

@ -71,7 +71,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Audio\BeatmapSampleStore.cs" />
<Compile Include="Audio\SampleInfo.cs" />
<Compile Include="Beatmaps\Drawables\BeatmapBackgroundSprite.cs" />
<Compile Include="Beatmaps\DifficultyCalculator.cs" />