Fix code style issues in ZXHawk

This commit is contained in:
YoshiRulz 2021-06-15 08:58:02 +10:00
parent 8470fcfc72
commit 826f9469dc
3 changed files with 5 additions and 5 deletions

View File

@ -146,7 +146,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
/// </summary>
public static int TranslatePause(int pauseInMS)
{
var tspms = (double)(69888 * 50) / (double)1000;
const double tspms = 69888.0 * 50.0 / 1000.0;
int res = (int)(pauseInMS * tspms);
return res;

View File

@ -1501,7 +1501,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
_position += 4;
}
#region Not Implemented Yet
#if true // Not Implemented Yet
/// <summary>
/// 0x33 - Hardware Type
@ -1976,7 +1976,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
}
#endregion
#endif
/// <summary>
/// Sets up variables for the next block

View File

@ -86,8 +86,8 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
WavStreamReader reader = new WavStreamReader(stream);
//int rate = (int)(((double)69888 * (double)50) / (double)reader.Header.sampleRate);
int rate = (int)((double)(3500000) / (double)reader.Header.sampleRate);
const double d = /*69888.0*/70000.0 * 50.0;
int rate = (int) (d / reader.Header.sampleRate);
int smpCounter = 0;
int state = reader.ReadNext();