Skip to content

Commit

Permalink
96khz/88.2khz response was improved, a little easier to resize forms …
Browse files Browse the repository at this point in the history
…when title-bar is hidden and "Auto Reload' is default off now due to lag is made with loud input volume.
  • Loading branch information
osamusg committed Nov 30, 2022
1 parent e0c0171 commit 59a4972
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions SpeAnaLED/Analyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ private void SetParamFromFreq(int freq)
{
// freq is readonly

if (freq <= 48000 ) // 44.1khz, 48khz
if (freq <= 48000) // 44.1khz, 48khz
{
_DATAFLAG = _channel > 1 ? BASSData.BASS_DATA_FFT8192 | BASSData.BASS_DATA_FFT_INDIVIDUAL : BASSData.BASS_DATA_FFT4096;
_mixfreqMultiplyer = 44100f / freq * 0.5f;
}
else if (freq <= 88200) // 88.2khz, 96khz
else if (freq <= 96000) // 88.2khz, 96khz
{
_DATAFLAG = _channel > 1 ? BASSData.BASS_DATA_FFT16384 | BASSData.BASS_DATA_FFT_INDIVIDUAL : BASSData.BASS_DATA_FFT8192;
_mixfreqMultiplyer = 44100f / freq;
Expand Down
8 changes: 4 additions & 4 deletions SpeAnaLED/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum EXECUTION_STATE : uint
ES_CONTINUOUS = 0X80000000,
}

private readonly string relText = "Rel." + "22112818";
private readonly string relText = "Rel." + "22120101";
private readonly Analyzer analyzer;
private readonly Form2 form2 = null;
private Form3 form3 = null;
Expand Down Expand Up @@ -544,7 +544,7 @@ private void Spectrum1_MouseMove(object sender, MouseEventArgs e)
if (form2.HorizontalRadio.Checked && form2.HideFreqCheckBox.Checked)
{

if (e.Y < Spectrum1.Height / 2)// 8)
if (e.Y < Spectrum1.Height / 3)
{
this.Height -= e.Y - mousePoint.Y;
if (this.Height < minHeight) this.Height = minHeight;
Expand Down Expand Up @@ -637,7 +637,7 @@ private void Spectrum2_MouseMove(object sender, MouseEventArgs e)
if (this.Height < minHeight) this.Height = minHeight;
else this.Top += e.Y - mousePoint.Y;
}
else if (e.Y < Spectrum2.Height / 2)
else if (e.Y < Spectrum2.Height / 3)
{
this.Height -= (e.Y - mousePoint.Y) / 25;
if (this.Height < minHeight) this.Height = minHeight;
Expand Down Expand Up @@ -1525,7 +1525,7 @@ private void LoadConfigParams()
form2.LeftFlipRadio.Checked = confReader.GetValue("flipLeft", false);
form2.HideFreqCheckBox.Checked = confReader.GetValue("hideFreq", false);
form2.HideTitleCheckBox.Checked = confReader.GetValue("hideTitle", false);
form2.AutoReloadCheckBox.Checked = confReader.GetValue("AutoReload", true);
form2.AutoReloadCheckBox.Checked = confReader.GetValue("AutoReload", false);

if ((prisumChecked = confReader.GetValue("LED", true)) == false)
if ((classicChecked = confReader.GetValue("classic", false)) == false)
Expand Down
6 changes: 3 additions & 3 deletions SpeAnaLED/Form3.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ private void LevelPictureBox_MouseMove(object sender, MouseEventArgs e)
}
else if (this.Cursor == Cursors.SizeNS)
{
if (e.Y < this.Height / 2)
if (e.Y < this.Height / 3)
{
this.Height -= (e.Y - mousePoint.Y) / 15;
if (this.Height < minHeight) this.Height = minHeight;
else this.Top += (e.Y - mousePoint.Y) / 15;
}
else if (e.Y > this.Height * 2 / 3)
else if (e.Y > this.Height * 1 / 2)
{
this.Height += (e.Y - mousePoint.Y) / 20;
this.Height += (e.Y - mousePoint.Y) / 25;
if (this.Height < minHeight) this.Height = minHeight;
}
}
Expand Down

0 comments on commit 59a4972

Please sign in to comment.