2011-02-15 19:05:21 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Drawing;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Windows.Forms;
|
|
|
|
|
|
|
|
|
|
namespace BizHawk.MultiClient
|
|
|
|
|
{
|
|
|
|
|
public partial class SoundConfig : Form
|
|
|
|
|
{
|
|
|
|
|
public SoundConfig()
|
|
|
|
|
{
|
|
|
|
|
InitializeComponent();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SoundConfig_Load(object sender, EventArgs e)
|
|
|
|
|
{
|
2011-02-15 20:18:12 +00:00
|
|
|
|
SoundOnCheckBox.Checked = Global.Config.SoundEnabled;
|
|
|
|
|
MuteFrameAdvance.Checked = Global.Config.MuteFrameAdvance;
|
|
|
|
|
}
|
2011-02-15 19:05:21 +00:00
|
|
|
|
|
2011-02-15 20:18:12 +00:00
|
|
|
|
private void OK_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
Global.Config.SoundEnabled = SoundOnCheckBox.Checked;
|
|
|
|
|
Global.Config.MuteFrameAdvance = MuteFrameAdvance.Checked;
|
2011-05-23 21:31:29 +00:00
|
|
|
|
Global.Config.SoundVolume = SoundVolBar.Value;
|
|
|
|
|
Global.Sound.StartSound();
|
2011-02-15 20:18:12 +00:00
|
|
|
|
this.Close();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void Cancel_Click(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
this.Close();
|
2011-02-15 19:05:21 +00:00
|
|
|
|
}
|
2011-05-23 21:31:29 +00:00
|
|
|
|
|
|
|
|
|
private void trackBar1_Scroll(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
SoundVolNumeric.Value = SoundVolBar.Value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void SoundVolNumeric_ValueChanged(object sender, EventArgs e)
|
|
|
|
|
{
|
|
|
|
|
SoundVolBar.Value = (int)SoundVolNumeric.Value;
|
|
|
|
|
}
|
2011-02-15 19:05:21 +00:00
|
|
|
|
}
|
|
|
|
|
}
|