Hooked up view with play button
Set up data structures for holding and playing music
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user