-
Notifications
You must be signed in to change notification settings - Fork 46
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
Noisy sample audio in mahjong GBC games by Studio Saizensen #241
Comments
These games seem to somehow be using the noise channel for the voices. Kidou Senkan Nadesico sets The game then alternates writing $88 and $00 to $FF25 to enable/disable the mixing of the noise channel. |
A few more observations:
The sound panning is done after all the logic on the 'analogue' side, so it may need to be addressed there, however it could still be a sync issue between the APU logic and the CPU writes, but not sure. Edit: |
I've found the problem and it's actually just a bug in the noise channel implementation. This issue only crops up when you want extremely low frequency clocking of the LFSR, which most games don't appear to use. The bug is in the period counter not being wide enough for these low frequencies. Here's a build that fixes the problem in at least Dejiko No Mahjong Party EDIT: Uploaded the right build this time! |
I tried the attached build, but unfortunately it did not fix the issue for me. Voice samples in these games now sound very quiet compared to music, making them almost inaudible. At least the blaring random noise is not as present. |
Sorry about that, I uploaded the wrong file! Please give the updated link a try. |
The new build works great! Played a few hands in Dejiko and Evangelion mahjong games, all voice samples are clear without background noise. Thank you very much! |
Tidy up noise channel implementation
Tidy up noise channel implementation
First of all, huge thanks for all recent improvements in the core related to sample playback in GBC games.
I've noticed that even with the latest core (20230501) some games still have noticeable noise over played voice samples. All of those I found are, perhaps not coincidentally, from the same developer's titles.
Dejiko no Mahjong Party (Japan).gbc
Kidou Senkan Nadesico - Ruri Ruri Mahjong (Japan).gbc
Shinseiki Evangelion - Mahjong Hokan Keikaku (Japan).gbc
These three games are all licensed mahjong games developed by Studio Saizensen and published by King Records. All of them feature voice samples during gameplay. They also play samples on title screens so they can be quickly tested. Unfortunately I have no actual Game Boy hardware to test with, so my only point of reference is emulation.
I've attached two recordings from the Evangelion mahjong title screen. The first is from Sameboy v0.15.8. The second is captured from Analog IO board's optical port connected to an external DAC and normalized to have the same volume level as the first recording.
Evangelion Sameboy.zip
Evangelion MiSTer (-12.6 db).wav.zip
The text was updated successfully, but these errors were encountered: