A7800Hawk: Pokey Sound

now sounds correct
This commit is contained in:
alyosha-tas 2017-08-27 09:22:41 -04:00 committed by GitHub
parent a6d036e13c
commit 4b520f2a8b
1 changed files with 10 additions and 8 deletions

View File

@ -219,12 +219,14 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
ch_out[i] = poly5.Bit(16);
}
ch_src[i] = !ch_src[i];
}
else if (((Regs[i * 2 + 1] & 0xF0) == 0x20) || ((Regs[i * 2 + 1] & 0xF0) == 0x60))
{
// 5 bit poly
ch_out[i] = poly5.Bit(4);
if (ch_src[i])
{
ch_out[i] = poly5.Bit(4);
}
}
else if ((Regs[i * 2 + 1] & 0xF0) == 0x40)
{
@ -237,7 +239,6 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
ch_out[i] = poly4.Bit(3);
}
ch_src[i] = !ch_src[i];
}
else if ((Regs[i * 2 + 1] & 0xF0) == 0x80)
{
@ -246,12 +247,14 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
{
ch_out[i] = poly17.Bit(16);
}
ch_src[i] = !ch_src[i];
}
else if ((Regs[i * 2 + 1] & 0xF0) == 0xA0)
{
// tone
ch_out[i] = !ch_out[i];
if (ch_src[i])
{
ch_out[i] = !ch_out[i];
}
}
else if ((Regs[i * 2 + 1] & 0xF0) == 0xC0)
{
@ -259,10 +262,9 @@ namespace BizHawk.Emulation.Cores.Atari.A7800Hawk
if (ch_src[i])
{
ch_out[i] = poly4.Bit(3);
}
ch_src[i] = !ch_src[i];
}
}
ch_src[i] = !ch_src[i];
// for channels 1 and 2, an optional high pass filter exists
// the filter is just a flip flop and xor combo