wpf_player.AudioPlayerModel.close C# (CSharp) Method

close() private method

This method closes all streams and the disposes the player.
private close ( object args = null ) : void
args object Unused Params
return void
        private void close(object args=null)
        {
            this.stop();
            if (wc != null)
            {
                wc.Close();
                wc = null;
            }
            if (localstream != null)
            {
                localstream.Close();
                localstream = null;
            }
            if (player != null)
            {
                player.Dispose();
            }
        }