Skip to content

Conversation

awjackson
Copy link
Contributor

This patch implements the length counters and envelopes for the MMC5 pulse channels, fixing missing sound effects in the Japanese versions of various Koei games. It also halves the volume of the MMC5 pulse channels to bring them in line with the APU channels.

I've hooked up the 240Hz "frame" sequencer via MapIRQHook, which makes me vaguely queasy since it has nothing to do with IRQs, but I don't see a better way of doing it, and it matches how the corresponding sequencer in the NES APU is hooked up (MapIRQHook and FCEU_SoundCPUHook are called from the same place in the CPU loop, with the same argument).

This patch probably breaks compatibility with existing savestates and movies for MMC5 games since it adds a whole bunch of saved state variables to the mapper (and deletes one).

@awjackson
Copy link
Contributor Author

Missing sound effects in Koei games is Sourceforge bug 797

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant