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

remove unused usings and reset the track to the start when playing again

This commit is contained in:
Jorolf 2017-09-29 23:26:16 +02:00
parent 26e7a3f157
commit 2457df8e18
6 changed files with 2 additions and 15 deletions

View File

@ -6,11 +6,6 @@ using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Graphics;
using osu.Game.Beatmaps;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace osu.Game.Audio
{

View File

@ -2,7 +2,6 @@
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics;
@ -12,7 +11,6 @@ using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface;
using OpenTK;
using OpenTK.Graphics;
using osu.Game.Audio;

View File

@ -12,7 +12,6 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osu.Framework.Configuration;
namespace osu.Game.Overlays.Direct
{

View File

@ -13,8 +13,6 @@ using osu.Framework.Allocation;
using osu.Framework.Localisation;
using osu.Framework.Graphics.Shapes;
using osu.Game.Beatmaps;
using osu.Framework.Configuration;
using System;
namespace osu.Game.Overlays.Direct
{

View File

@ -131,12 +131,13 @@ namespace osu.Game.Overlays.Direct
{
PlayButton.Loading = false;
Preview = (d as AudioLoadWrapper)?.Preview;
Preview.Start();
PreviewPlaying.TriggerChange();
},
});
}
else
{
Preview.Seek(0);
Preview.Start();
}
}

View File

@ -3,16 +3,12 @@
using OpenTK.Graphics;
using osu.Framework.Allocation;
using osu.Framework.Audio;
using osu.Framework.Audio.Track;
using osu.Framework.Configuration;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Input;
using osu.Game.Beatmaps;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using System.Threading.Tasks;
namespace osu.Game.Overlays.Direct
{