/// <summary>
        ///     Initializes a new instance of this class. 
        /// </summary>
        /// <param name="file">Music file to play.</param>
        public MusicPlayerWindow(string file)
        {
            InitializeComponent();

            _sound = AudioManager.LoadSound(file, 0);
            _soundChannel = _sound.Play();
            frequencyTrackBar.Value = _soundChannel.Frequency;
            panTrackBar.Value = (int)(_soundChannel.Pan * 50);
            volumeTrackBar.Value = (int)(_soundChannel.Volume);
            updateTimer.Start();
            fileLabel.Text = Path.GetFileName(file);
            Text = "Music Player - " + Path.GetFileName(file);
        }
        /// <summary>
        ///     Reloads the currently selected sound.
        /// </summary>
        private void ReloadSound()
        {
            if (_soundChannel != null)
            {
                _soundChannel.Stop();
                _soundChannel = null;
            }
            if (_sound != null)
            {
                _sound.Stop();
                _sound = null;
            }
            GC.Collect();

            SoundFlags flags = 0;
            if (_streamed == true) flags |= SoundFlags.Streamed;
            if (_positional == true) flags |= SoundFlags.Positional;
            if (fileTreeView.SelectedNode != null && File.Exists(Engine.GlobalInstance.AudioPath + "/" + fileTreeView.SelectedNode.FullPath))
            {
                _sound = AudioManager.LoadSound(Engine.GlobalInstance.AudioPath + "/" + fileTreeView.SelectedNode.FullPath, flags);
                _soundChannel = _sound.Play();
            }
            SyncronizeWindow();
        }