最終更新:2021-07-15 (木) 01:45:27 (988d)
PyAudio.get_host_api_info_by_index
Top / PyAudio.get_host_api_info_by_index
get_host_api_info_by_index(host_api_index)
- Return a dictionary containing the Host API parameters for the host API specified by the host_api_index.
- The keys of the dictionary mirror the data fields of PortAudio’s PaHostApiInfo? structure.
例
- host_api_index=0
{'defaultInputDevice': 14, 'defaultOutputDevice': 14, 'deviceCount': 15, 'index': 0, 'name': 'ALSA', 'structVersion': 1, 'type': 8}
- host_api_index=1
{'defaultInputDevice': -1, 'defaultOutputDevice': -1, 'deviceCount': 0, 'index': 1, 'name': 'OSS', 'structVersion': 1, 'type': 7}