pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

Add binding for SDL_mixer Mix_SetPostMix

Open LeWolfYT opened this issue 10 months ago • 2 comments
trafficstars

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 avatar Jan 10 '25 18:01 LeWolfYT

You can try pygame._sdl2.mixer.set_post_mix

yunline avatar Jan 11 '25 04:01 yunline

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).

LeWolfYT avatar Jan 11 '25 18:01 LeWolfYT