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

Add binding for SDL_mixer Mix_SetPostMix #3289

Open
LeWolfYT opened this issue Jan 10, 2025 · 2 comments
Open

Add binding for SDL_mixer Mix_SetPostMix #3289

LeWolfYT opened this issue Jan 10, 2025 · 2 comments

Comments

@LeWolfYT
Copy link

I've been working on a project that needs to read from the mixed audio stream to be sent to ffmpeg for streaming. However, the only function I found fit is the Mix_SetPostMix function, which has no analogous function in Python. If some equivalent of this function were implemented, audio visualizations and other similar functions would be possible.

@LeWolfYT LeWolfYT changed the title Implement SDL_mixer Mix_SetPostMix Add binding for SDL_mixer Mix_SetPostMix Jan 10, 2025
@yunline
Copy link
Contributor

yunline commented Jan 11, 2025

You can try pygame._sdl2.mixer.set_post_mix

@LeWolfYT
Copy link
Author

This does work, but I think that it would still be beneficial to move it into the main library for ease of access and documentation purposes, since pygame._sdl2.mixer is undocumented (to my knowledge).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants