pygame-community / pygame-ce

🐍🎮 pygame - Community Edition is a FOSS Python library for multimedia applications (like games). Built on top of the excellent SDL library.
https://pyga.me
862 stars 141 forks source link

set_source_location fails at runtime on some audio setups #2751

Open Starbuck5 opened 6 months ago

Starbuck5 commented 6 months ago

This hasn't been reported on this repo yet, but we really need to do something about it, so making this issue.

When calling set_source_location on certain mixer setups

pygame.error: Unsupported audio channels

Here's the SDL_mixer issue for context: https://github.com/libsdl-org/SDL_mixer/issues/573

This has hit both bigwhoop and dafluffypotato when distributing their games to people where mixer defaults to 7.1 surround on their setup.

Starbuck5 commented 4 months ago

Added a warning/reference to the docs to get this as resolved as I think it can be for 2.5.0. https://github.com/pygame-community/pygame-ce/pull/2881