Skip to content

Commit

Permalink
The nightmare is gone! 3.1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
KaleidonKep99 committed Mar 4, 2016
1 parent 5f6e531 commit 1aa9faa
Show file tree
Hide file tree
Showing 57 changed files with 539 additions and 12,684 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions KeppyDriverConfigurator/KeppyDriverConfigurator/BankNPresetSel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using System.Data;
using System.Drawing;
using System.Text;
using System.IO;
using System.Diagnostics;
using System.Windows.Forms;

namespace KeppyDriverConfigurator
Expand Down Expand Up @@ -34,5 +36,19 @@ private void ConfirmBut_Click(object sender, EventArgs e)
DialogResult = DialogResult.OK;
Close();
}

private void CancelBtn_Click(object sender, EventArgs e)
{
Close();
}

private void WikipediaLink_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
var helpFile = Path.Combine(Path.GetTempPath(), "help.txt");
File.WriteAllText(helpFile, KeppyDriverConfigurator.Properties.Resources.gmlist);
Process.Start(helpFile);
}


}
}
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
</ItemGroup>
<ItemGroup>
<Content Include="Resources\gear.ico" />
<None Include="Resources\sfzcomp.png" />
<None Include="Resources\gmlist.txt" />
<None Include="Resources\updatebk.png" />
<None Include="Resources\keppydriverlogobyfrozennotrasparency2.jpg" />
</ItemGroup>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ private void SaveSettings()
int VolumeValue = 0;
double x = VolTrackBar.Value / 100;
VolumeValue = Convert.ToInt32(x);
VolSimView.Text = VolumeValue.ToString("000");
VolIntView.Text = "Volume in 32-bit integer: " + VolTrackBar.Value.ToString();
VolSimView.Text = VolumeValue.ToString("000\\%");
VolIntView.Text = "Volume in 32-bit integer: " + VolTrackBar.Value.ToString("00000") + " (" + (VolTrackBar.Value / 100).ToString("000") + "%)";
Settings.SetValue("volume", VolTrackBar.Value.ToString(), RegistryValueKind.DWord);

// Checkbox stuff yay
if (Preload.Checked == true)
{
Expand Down Expand Up @@ -328,8 +328,8 @@ private void KeppyDriverConfiguratorMain_Load(object sender, EventArgs e)
// And finally, the volume!
int VolumeValue = Convert.ToInt32(Settings.GetValue("volume"));
double x = VolumeValue / 100;
VolSimView.Text = x.ToString("000");
VolIntView.Text = "Volume in 32-bit integer: " + VolumeValue.ToString();
VolSimView.Text = x.ToString("000\\%");
VolIntView.Text = "Volume in 32-bit integer: " + VolumeValue.ToString("00000") + " (" + (VolumeValue / 100).ToString("000") + "%)";
VolTrackBar.Value = VolumeValue;
}
catch (Exception ex)
Expand All @@ -346,8 +346,8 @@ private void VolTrackBar_Scroll(object sender, EventArgs e)
int VolumeValue = 0;
double x = VolTrackBar.Value / 100;
VolumeValue = Convert.ToInt32(x);
VolSimView.Text = VolumeValue.ToString("000");
VolIntView.Text = "Volume in 32-bit integer: " + VolTrackBar.Value.ToString();
VolSimView.Text = VolumeValue.ToString("000\\%");
VolIntView.Text = "Volume in 32-bit integer: " + VolTrackBar.Value.ToString("00000") + " (" + (VolTrackBar.Value / 100).ToString("000") + "%)";
Settings.SetValue("volume", VolTrackBar.Value.ToString(), RegistryValueKind.DWord);
}
catch
Expand Down Expand Up @@ -952,7 +952,29 @@ private void howCanIResetTheDriverToolStripMenuItem_Click(object sender, EventAr

private void whatsTheBestSettingsForTheBufferToolStripMenuItem_Click(object sender, EventArgs e)
{
MessageBox.Show("For Realtek audio cards, it's 15.\nFor VIA audio cards, it's 20.\nFor USB DACs, it's 30-35.", "What's the best settings for the buffer?", MessageBoxButtons.OK, MessageBoxIcon.Question);
MessageBox.Show("For Realtek audio cards, it's 15.\nFor VIA audio cards, it's 20.\nFor Conexant audio cards, it's 30.\nFor USB DACs, it's 30-35.\nFor all the AC'97 audio cards, it's 40.\n\nIt's possible to set it to 10 with really fast computers.", "What's the best settings for the buffer?", MessageBoxButtons.OK, MessageBoxIcon.Question);
}

// SFZ compliant part
private void SFZComp1_Click(object sender, EventArgs e)
{
MessageBox.Show("This driver is \"SFZ format 2.0\" compliant.", "SFZ format support", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void SFZComp2_Click(object sender, EventArgs e)
{
MessageBox.Show("This driver is \"SFZ format 2.0\" compliant.", "SFZ format support", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void SFZComp3_Click(object sender, EventArgs e)
{
MessageBox.Show("This driver is \"SFZ format 2.0\" compliant.", "SFZ format support", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

private void SFZComp4_Click(object sender, EventArgs e)
{
MessageBox.Show("This driver is \"SFZ format 2.0\" compliant.", "SFZ format support", MessageBoxButtons.OK, MessageBoxIcon.Information);
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@
<metadata name="ExternalListImport.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>273, 17</value>
</metadata>
<metadata name="$this.TrayHeight" type="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>64</value>
</metadata>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ private void DebugRefresh_Tick(object sender, EventArgs e)
{
RegistryKey Debug = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Keppy's Driver", false);
RegistryKey Settings = Registry.CurrentUser.OpenSubKey("SOFTWARE\\Keppy's Driver\\Settings", false);
Voices.Text = Debug.GetValue("currentvoices0") + "/" + Settings.GetValue("polyphony");
CPU.Text = Debug.GetValue("currentcpuusage0") + "%";
Voices.Text = Convert.ToInt32(Debug.GetValue("currentvoices0")).ToString("0000") + "/" + Convert.ToInt32(Settings.GetValue("polyphony")).ToString("0000");
CPU.Text = (Convert.ToInt32(Debug.GetValue("currentcpuusage0")) * 1.125).ToString("000") + "%"; // With a little overhead, for the real CPU usage.
DecodedInt.Text = "Decoded data size: " + Debug.GetValue("int") +" frames (Int32 value)";
}
catch (Exception ex)
{
MessageBox.Show(ex.Message.ToString() + "\n\nPress OK to stop the debug mode.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);

Close();
}
}
}
Expand Down
Loading

0 comments on commit 1aa9faa

Please sign in to comment.