Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m32x+md fixes #1807

Merged
merged 5 commits into from
Feb 3, 2025
Merged

m32x+md fixes #1807

merged 5 commits into from
Feb 3, 2025

Conversation

TascoDLX
Copy link
Contributor

@TascoDLX TascoDLX commented Feb 2, 2025

  1. Revised pwm emulation, mostly to align with documentation. Not likely to affect much except for rare edge cases. Also, added a dc filter to prevent audio popping in certain situations (like window losing focus), but pops on init are correct behavior. Fixes [Mega 32X] BC Racers. Sound Samples are not played back #937 by implementing byte-wide fifo writes from the SH2 side.
  2. Various fixups to 32x io access by the 68k. Fixes [MEGA CD-32X] Night Trap: video/sound stuttering #1196 and missing music in Brutal.
  3. Follow-up to a previous PR: cram dots were not limited properly, and line buffer adjustment was crashing 32x in certain cases (as reported in the discord).

@@ -11,7 +10,8 @@ auto M32X::PWM::unload(Node::Object parent) -> void {
}

auto M32X::PWM::main() -> void {
n12 clocks = cycle - 1;
int clocks = cycle > 0 ? cycle-1 : 4095;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change shouldn’t have been necessary, if clocks was 0, being an n5 it should have underflowed and wrapped to 4095 anyway

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct. I had changed this at some point but I guess it just wound up back where it started.

@TascoDLX
Copy link
Contributor Author

TascoDLX commented Feb 3, 2025

Added fix to pixel alignment between H32 and H40 modes. This is also follow-up to the previous PR where borders were added.

@LukeUsher LukeUsher merged commit aef110f into ares-emulator:master Feb 3, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

[MEGA CD-32X] Night Trap: video/sound stuttering [Mega 32X] BC Racers. Sound Samples are not played back
2 participants