Skip to content

sound/gb.cpp: Updates/Cleanups: #13483

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

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

Conversation

cam900
Copy link
Contributor

@cam900 cam900 commented Mar 16, 2025

  • Fix wave RAM corruption function
  • Fix wave RAM read/write behaviour for GBA
  • Fix wave channel skip and output emulation
  • Fix sweep emulation
  • Remove outdated comment
  • Use single integer for pulse duty table
  • Fix master volume
  • Make some variables constant
  • Reduce duplicates
  • Fix typenames for boolean flags
  • Fix outputs
  • Fix docs, Fix namings

reference: https://gbdev.io/pandocs/

Comment on lines -417 to +407
snd.signal = wave_duty_table[snd.duty][snd.duty_count];
snd.signal = BIT(wave_duty_table[snd.duty], snd.duty_count);
Copy link
Member

Choose a reason for hiding this comment

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

This changes the output for these channels from balanced -1/+1 to unbalanced 0/+1 levels. Is that correct? Can you provide a reference for this change in behaviour?

Copy link
Contributor Author

@cam900 cam900 Apr 9, 2025

Choose a reason for hiding this comment

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

That is digital sample, and converted at DAC output.
reference: https://gbdev.io/pandocs/Audio_details.html

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.

2 participants