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

Implement sound fx pitch shifting #46

Open
drfiemost opened this issue Jul 3, 2023 · 1 comment
Open

Implement sound fx pitch shifting #46

drfiemost opened this issue Jul 3, 2023 · 1 comment

Comments

@drfiemost
Copy link
Member

Since moving from fmod to sdl_mixer the functionality has been lost, Would be nice reimplementing it. See https://gist.github.com/hydren/f60d107f144fcb41dd6f898b126e17b2 for an example

@drfiemost
Copy link
Member Author

The problem is that we call SoundManager.PlayWave with the new sample rate but we don't know the original frequency of the samples.
To make it work we should pass a resampling ratio instead to the PlayWave function.

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

No branches or pull requests

1 participant