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

set_source_location fails at runtime on some audio setups #2751

Open
Starbuck5 opened this issue Mar 17, 2024 · 1 comment
Open

set_source_location fails at runtime on some audio setups #2751

Starbuck5 opened this issue Mar 17, 2024 · 1 comment
Labels
mixer pygame.mixer

Comments

@Starbuck5
Copy link
Member

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: libsdl-org/SDL_mixer#573

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

  • Should we document how to force stereo in the docs for this function and tell people to force stereo?
  • Can we prevent mixer from opening in 7.1 mode somehow?
  • We could make this a silent fail instead of an exception? Maybe not a good idea.
@Starbuck5
Copy link
Member Author

Starbuck5 commented May 30, 2024

Added a warning/reference to the docs to get this as resolved as I think it can be for 2.5.0. #2881

@Starbuck5 Starbuck5 removed this from the 2.5.0 milestone May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mixer pygame.mixer
Projects
None yet
Development

No branches or pull requests

1 participant