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

@ -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
{