Skip to content

pygame.midi not accessing devices properly on linux #2155

Open
@JiffyRob

Description

@JiffyRob

Environment:

  • Operating system: Linux(Debian 11), using ALSA and Pipewire
  • Python version: 3.9 (I might have tested on 3.11 as well, but I don't remember)
  • SDL version: Whatever the PyPI builds of my pygame versions shipped with
  • PyGame version: Tested on 1.9.6, 2.0.0, 2.1.0, 2.1.1, 2.1.2, 2.1.3-CE (pygame up through 2.1.2 worked, CE did not) (Also the versions of original pygame were tested, 2.2.0 and 2.3.0, and neither of them worked either)

Current behavior:

pygame.midi.get_count() will always return 0, even if I have multiple virtual and physical devices connected.

Expected behavior:

No errors and it sees my devices. This is how the versions that "worked" behaved.

Test code

import pygame.midi
pygame.midi.init() # causes warning
print(pygame.midi.get_count())

Stack trace/error output/other error logs

ALSA lib conf.c:4555:
(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf
ALSO lib seq.c:935:
(snd_seq_open_noupdate) Unknown SEQ default

Metadata

Metadata

Assignees

No one assigned

    Labels

    Gnu/LinuxbugNot working as intendedmidipygame.midi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions