Added AY38912 support

This commit is contained in:
2026-04-30 14:35:12 +01:00
parent 3d13425d51
commit d90537de59
7 changed files with 223 additions and 29 deletions

View File

@@ -170,8 +170,20 @@ namespace Core
{
while (Cpu.TotalTStates >= (long)(audioSampleCount * 79.365))
{
// Mix the speaker and the tape ear port
bool finalAudioOutput = IoBus.BeeperState ^ TapeDeck.EarBit;
_beeper.AddSample(finalAudioOutput);
// Blast the 1-bit Beeper AND the 3-Channel Synth into the audio buffer!
_beeper.AddSample(
finalAudioOutput,
IoBus.AyChip.FreqA,
IoBus.AyChip.VolA,
IoBus.AyChip.FreqB,
IoBus.AyChip.VolB,
IoBus.AyChip.FreqC,
IoBus.AyChip.VolC
);
audioSampleCount++;
}
}