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 · 0 comments
Open

set_source_location fails at runtime on some audio setups #2751

Starbuck5 opened this issue Mar 17, 2024 · 0 comments
Labels
mixer pygame.mixer
Milestone

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 Starbuck5 added the mixer pygame.mixer label Mar 17, 2024
@Starbuck5 Starbuck5 added this to the 2.5.0 milestone Mar 17, 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