We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c151bc1 commit 45842eeCopy full SHA for 45842ee
sounddevice.py
@@ -2454,6 +2454,12 @@ def _populate_hostapis():
2454
class HostAPIs(_namedtuple('HostAPIs', (h['apiname'] for h in hostapi_list))):
2455
"""Access to PortAudio Host API's"""
2456
__slots__ = ()
2457
+
2458
+ all_apinames = set(_typeid_to_apiname.values())
2459
+ missing_apinames = all_apinames - set(h['apiname'] for h in hostapi_list)
2460
+ for apiname in missing_apinames:
2461
+ setattr(HostAPIs, apiname, None)
2462
2463
hostapis = HostAPIs(*(_HostAPI(**h) for h in hostapi_list))
2464
2465
0 commit comments