示例#1
0
        /// <summary>
        ///     Initializes this instance.
        /// </summary>
        public void Initialize()
        {
            CurrentTrack  = BassPlayer.CurrentTrack;
            PreviousTrack = BassPlayer.PreviousTrack;
            NextTrack     = BassPlayer.NextTrack;

            BassPlayer.OnTrackQueued += BassPlayer_OnTrackChange;
            BassPlayer.OnTrackChange += BassPlayer_OnTrackChange;

            BassPlayer.OnManualMixVolumeChanged += BassPlayer_OnManualMixVolumeChanged;
            BassPlayer.OnManualMixModeChanged   += BassPlayer_OnManualMixModeChanged;

            sldFader.Minimum = 0;
            sldFader.Maximum = 100;

            rdbDelay2.Checked = true;

            chkEnableTrackFXAutomation.Checked = BassPlayer.TrackFxAutomationEnabled;

            cmbFadeOutType.SelectedIndex = 0;

            BassPlayer.DisableManualMixMode();

            BindData();

            _timer.Tick    += Timer_Tick;
            _timer.Interval = 200;
            _timer.Start();
        }
示例#2
0
        /// <summary>
        ///     Handles the CheckedChanged event of the chkManualFading control.
        /// </summary>
        private void chkManualFading_CheckedChanged(object sender, EventArgs e)
        {
            if (_binding)
            {
                return;
            }

            _bindingManualMode = true;
            if (chkManualFading.Checked)
            {
                BassPlayer.EnableManualMixMode();
            }
            else
            {
                BassPlayer.DisableManualMixMode();
            }
            _bindingManualMode = false;

            BindData();
        }