//Play the file
        private void TogglePlayback(AudioPlayer player,bool status)
        {
            if (player == null)
                return;

            //if (!player.IsPlaying && (status))
            if(status)
            {
                player.Stop();
                player.Play();
            }
        }