Ejemplo n.º 1
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            //Restore normal volume settings
            AudioInfo.ApplyConfig();
        }
Ejemplo n.º 2
0
 private void btnReset_Click(object sender, EventArgs e)
 {
     ConfigManager.Config.AudioInfo = new AudioInfo();
     Entity = ConfigManager.Config.AudioInfo;
     UpdateUI();
     AudioInfo.ApplyConfig();
 }
Ejemplo n.º 3
0
        protected override bool ValidateInput()
        {
            UpdateObject();
            AudioInfo.ApplyConfig();

            return(true);
        }
Ejemplo n.º 4
0
        protected override void OnFormClosed(FormClosedEventArgs e)
        {
            base.OnFormClosed(e);

            //Restore normal volume settings
            AudioInfo.ApplyConfig();

            ConfigManager.Config.DebugInfo.ApuViewerLocation = this.WindowState != FormWindowState.Normal ? this.RestoreBounds.Location : this.Location;
            ConfigManager.ApplyChanges();
        }
Ejemplo n.º 5
0
        protected override bool ValidateInput()
        {
            UpdateObject();
            if (((AudioInfo)Entity).AudioLatency < 15)
            {
                ((AudioInfo)Entity).AudioLatency = 15;
            }
            else if (((AudioInfo)Entity).AudioLatency > 300)
            {
                ((AudioInfo)Entity).AudioLatency = 300;
            }
            AudioInfo.ApplyConfig();

            return(true);
        }
Ejemplo n.º 6
0
 private void trkVolume_ValueChanged(object sender, EventArgs e)
 {
     ConfigManager.Config.AudioInfo.MasterVolume = (uint)trkVolume.Value;
     ConfigManager.ApplyChanges();
     AudioInfo.ApplyConfig();
 }
Ejemplo n.º 7
0
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     base.OnFormClosed(e);
     AudioInfo.ApplyConfig();
 }