-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
base: master
Are you sure you want to change the base?
Conversation
- 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
snd.signal = wave_duty_table[snd.duty][snd.duty_count]; | ||
snd.signal = BIT(wave_duty_table[snd.duty], snd.duty_count); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
reference: https://gbdev.io/pandocs/