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

SPU2: Resample reverb input/output. #4226

Merged
merged 5 commits into from
Feb 23, 2021

Conversation

Ziemas
Copy link
Contributor

@Ziemas Ziemas commented Feb 19, 2021

The reverb runs at half the the samplerate of the rest of the SPU so a change of samplerate is required. They way this is currently done is by decimating when downsampling and duplicating samples when upsampling without doing any filtering.

This adds proper filtering to this process, the filter coefficients are from mednafen but I think they were originally found by Neill Corlett.

I have not yet compared to real PS2 behavior and don't know when I'll get around to so I'm PR'ing this now.

@Ziemas
Copy link
Contributor Author

Ziemas commented Feb 19, 2021

2021-02-20-00:21:48
Master on the left PR on the right

These filter coefficients come from mednafen, I think they were
originally found by Neill Corlett.

I have not personally verified their accuracy.
Using the same filter as the downsampling
Skip multiplying the 0's
Skip the 0 coefs here as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants