Hooked up view with play button

Set up data structures for holding and playing music
This commit is contained in:
watsonb8
2019-05-22 10:30:41 -04:00
parent 65d56a838c
commit a4276a0d5d
7 changed files with 88 additions and 31 deletions

View File

@@ -15,12 +15,25 @@ namespace Aurora.Backend.Models
#endregion Properties
#region Methods
public override void Play()
public override void Load()
{
throw new NotImplementedException();
if (this.DataStream != null)
{
DataStream.Close();
DataStream = null;
}
this.DataStream = System.IO.File.OpenRead(File.FullName);
base.Load();
}
#endregion Methods
public override void Unload()
{
if (this.DataStream != null)
{
DataStream.Close();
DataStream = null;
}
base.Unload();
}
}
}