You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function default_input_device causes a panic when no input device is found. The function Pa_GetDefaultInputDevice returns -1 (paNoDevice), which it then attempts to convert to an Error, which panics at the unwrap.
The same issue likely exists for default_output_device as well.
A fix would be to include -1 explicitly in Error, or to handle the -1 value.
The text was updated successfully, but these errors were encountered:
The function
default_input_device
causes a panic when no input device is found. The functionPa_GetDefaultInputDevice
returns -1 (paNoDevice), which it then attempts to convert to an Error, which panics at the unwrap.The same issue likely exists for
default_output_device
as well.A fix would be to include -1 explicitly in Error, or to handle the -1 value.
The text was updated successfully, but these errors were encountered: