[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] BUG: MIDI Input Close on macOS
- To: pygame-users@xxxxxxxx
- Subject: [pygame] BUG: MIDI Input Close on macOS
- From: Frédéric AUPÉPIN <frederic.aupepin@xxxxxxxxx>
- Date: Sat, 9 Jan 2021 19:23:10 +0100
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Sat, 09 Jan 2021 13:23:15 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=bnGMfcTAxUb7EZpVaHSRlTlJvtnTBrv195yNLOx8mDI=; b=AZAoAaoCnV4bSjX+ROmvqxIMMvFUXGFAYz4GWaPW7Fg9DPthKUB1NC5cJZnCkgCe7n lexiszTC4RebEPzB3eel1zrQGNC1FFwgsDXUtkbs6ob5j3A8vgXCy+j1yO3ClA+H69jj zI9BgmNFs8dyp3++sQEK/jHDLsFNHyOGJk7SnCIwjHshaSijy0Zfpwzck9vO7l15JQo/ 9rtTRR/mR427CZmmZXSnDezGEMs+/ZbRQphXX6dzs3p6h/GKhIGIM1Albc6n8ShGXXPW hqDWETZuOEbsOMInWoVau4Yzu8hyEbuMHjky5yXKtIZPvf6jtCimmvQJH80hF5CkSFJ+ +Mvw==
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
I’m a macOS user under Catalina (10.15.7) and I think there might be an issue related to the closure of a MIDI Input.
I have currently Python 3.8.2 and Pygame 2.0.0 with SDL 2.0.12.
The issue is following: if I close a MIDI input it is impossible to reopen one afterwards unless I exit Python.
Here is what I did:
import pygame.midi
pygame.midi.init()
pygame.midi.get_count() #to verify that there are MIDI devices
pygame.midi.get_device_info(0) # verify information of the input (at list id 0 was my input) at verify that the input is available
midiin1 = pygame.midi.Input(0) # everything is fine and can read
midiin1.close()
pygame.midi.get_device_info(0) # then it is stated that the device is still opened preventing to reopen an Input
midiin1 = pygame.midi.Input(0) # will return error
Sincerely,
Frédéric