public void Stop()
{
if (this._Stream != null)
{
// NAudio needs to be persuaded to make sure the stream stays stopped. (Something about threading issues?)
((IDisposable)(this._Stream)).Dispose();
this._Stream = null;
}
if (this._Player != null)
{
this._Player.Stop();
this._Player.Dispose();
this._Player = null;
}
}