FDS: make the sound channel softer overall. there are still some bugs with it, though...

This commit is contained in:
goyuken 2012-10-27 14:24:00 +00:00
parent afaa256e37
commit fce1ffcce2
2 changed files with 9 additions and 3 deletions

View File

@ -270,7 +270,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{ {
// worst imaginable resampling // worst imaginable resampling
int pos = i * samplebuffpos / samples.Length; int pos = i * samplebuffpos / samples.Length;
int samp = samplebuff[pos] * 20 - 20160; int samp = samplebuff[pos] * 6 - 12096;
samp += samples[i]; samp += samples[i];
if (samp > 32767) if (samp > 32767)
samples[i] = 32767; samples[i] = 32767;

View File

@ -313,8 +313,14 @@ namespace BizHawk.Emulation.Consoles.Nintendo
{ {
if (state == RamAdapterState.IDLE && disk != null) // no spinup when no disk if (state == RamAdapterState.IDLE && disk != null) // no spinup when no disk
{ {
state = RamAdapterState.SPINUP; // this isn't right, despite the fact that without it some games seem to cycle the disk needlessly??
SetCycles(); //if ((cached4025 & 1) != 0)
// Console.WriteLine("FDS: Ignoring spurious spinup");
//else
//{
state = RamAdapterState.SPINUP;
SetCycles();
//}
} }
} }
if ((value & 2) != 0) if ((value & 2) != 0)