A7800: Fix unplugged controller and Pokey sound

This commit is contained in:
alyosha-tas 2018-06-28 18:10:28 -04:00
parent 7ff08fb63e
commit 77bba444fd
2 changed files with 10 additions and 2 deletions

View File

@ -383,7 +383,7 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
pokey.GetSamples(ret2); pokey.GetSamples(ret2);
for (int i = 0; i < _spf * 2; i ++) for (int i = 0; i < _spf * 2; i ++)
{ {
ret[i] += ret2[i]; ret[i] += (short)(ret2[i] * 3);
} }
} }

View File

@ -38,7 +38,10 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
PortNum = portNum; PortNum = portNum;
Definition = new ControllerDefinition Definition = new ControllerDefinition
{ {
BoolButtons = new List<string>() Name = "Unplugged Controller",
BoolButtons = BaseDefinition
.Select(b => "P" + PortNum + " " + b)
.ToList()
}; };
} }
@ -71,6 +74,11 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
public ControllerDefinition Definition { get; } public ControllerDefinition Definition { get; }
private static readonly string[] BaseDefinition =
{
""
};
public void SyncState(Serializer ser) public void SyncState(Serializer ser)
{ {
// Do nothing // Do nothing