Skip to content

set_source_location fails at runtime on some audio setups #2751

Open
@Starbuck5

Description

@Starbuck5

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    mixerpygame.mixer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions