Jatin K Malik and GitHub
77def71354
fix(audio): stop passing explicit index when zero devices enumerate ( #891 )
...
* fix(audio): stop passing explicit index when zero devices enumerate
With zero audio devices, _resolve_valid_input_device returned the saved preferred_index, so _open_capture_stream opened input_device_index=<stale> — a device that cannot exist — and Pa_OpenStream aborted the whole process (SIGSEGV) before the clean IOError->ERROR path could run. Zero enumerated devices now returns None so PyAudio falls back to the system default and fails catchably; a negative count (enumeration failure) still passes the preferred index through.
* test(audio): cover capture path omitting device index
* test(audio): cover saved-device zero-enumeration capture path
* test(audio): annotate new resolver tests
2026-09-29 22:26:16 -07:00
..
2026-08-26 23:59:19 -07:00
2026-08-16 15:22:22 -07:00
2026-09-02 01:54:15 -07:00
2026-09-29 15:33:27 -07:00
2026-09-07 18:10:38 -07:00
2026-09-12 12:41:06 -07:00
2026-09-07 20:47:56 -07:00
2026-03-17 14:05:16 -07:00
2026-07-16 00:03:30 -07:00
2026-07-29 01:39:15 +05:30
2026-09-12 13:16:10 -07:00
2026-09-07 20:47:12 -07:00
2026-03-17 14:05:16 -07:00
2026-03-21 12:15:10 -07:00
2026-02-04 21:01:34 -08:00
2026-08-18 17:46:55 -07:00
2026-09-29 12:24:59 -07:00
2026-09-12 12:39:25 -07:00
2026-09-29 21:16:03 -07:00
2026-09-29 21:19:29 -07:00
2026-09-15 22:41:26 -07:00
2026-09-29 14:24:31 -07:00
2026-09-29 21:16:03 -07:00
2026-09-07 14:11:54 -07:00
2026-09-29 12:24:52 -07:00
2026-07-27 19:57:07 -07:00
2026-09-23 00:09:54 -07:00
2026-09-29 01:06:08 -07:00
2026-07-24 00:44:47 -07:00
2026-09-12 13:42:42 -07:00
2026-09-08 20:52:34 -07:00
2026-09-29 01:06:32 -07:00
2026-09-29 15:33:27 -07:00
2026-09-14 00:16:50 -07:00
2026-08-29 14:46:50 -07:00
2026-09-02 01:02:49 -07:00
2026-08-29 14:46:50 -07:00
2026-09-02 01:02:49 -07:00
2026-09-20 11:18:08 -07:00
2026-08-29 14:46:50 -07:00
2026-07-13 14:40:04 -07:00
2026-06-06 19:18:57 -07:00
2026-09-29 21:16:03 -07:00
2026-09-07 20:47:56 -07:00
2026-09-09 23:43:40 -07:00
2026-09-29 21:16:03 -07:00
2026-09-29 21:16:03 -07:00
2026-08-24 00:25:06 -07:00
2026-09-29 01:07:16 -07:00
2026-08-26 22:53:29 -07:00
2026-03-17 14:05:16 -07:00
2026-03-17 14:05:16 -07:00
2026-03-17 14:05:16 -07:00
2026-07-16 00:03:30 -07:00
2026-09-23 00:09:54 -07:00
2026-09-07 14:12:04 -07:00
2026-09-07 18:10:43 -07:00
2026-02-05 14:51:36 -08:00
2026-07-16 00:03:30 -07:00
2026-08-26 23:59:19 -07:00
2026-08-26 23:59:19 -07:00
2026-09-29 22:02:56 -07:00
2026-03-17 14:05:16 -07:00
2026-09-29 01:07:16 -07:00
2026-09-07 20:47:56 -07:00
2026-07-26 22:29:00 -07:00
2026-09-29 01:06:08 -07:00
2026-08-31 10:43:44 -07:00
2026-08-28 23:29:58 -07:00
2026-09-29 01:06:54 -07:00
2026-09-07 18:10:43 -07:00
2026-08-12 23:42:36 -07:00
2026-09-29 15:33:27 -07:00
2026-08-08 00:07:54 -07:00
2026-08-24 00:25:06 -07:00
2026-09-07 20:47:56 -07:00
2026-08-18 17:59:57 -07:00
2026-09-14 00:21:17 -07:00
2026-08-24 00:25:06 -07:00
2026-09-29 01:06:54 -07:00
2026-09-29 22:26:16 -07:00
2026-09-07 20:47:56 -07:00
2026-07-28 21:31:02 -07:00
2026-09-29 22:02:56 -07:00
2026-08-24 00:25:06 -07:00
2026-09-16 00:18:09 -07:00
2026-09-29 22:02:56 -07:00
2026-09-16 19:40:13 -07:00
2026-03-21 12:18:21 -07:00
2026-02-04 21:01:34 -08:00
2026-09-29 15:33:27 -07:00
2026-07-13 18:53:00 -07:00
2026-09-29 01:06:08 -07:00
2026-09-29 21:19:29 -07:00
2026-09-29 22:02:56 -07:00
2026-08-26 23:59:19 -07:00
2026-09-29 01:05:46 -07:00
2026-06-02 12:43:51 -07:00
2026-09-29 01:06:08 -07:00
2026-08-24 00:25:06 -07:00
2026-09-23 00:09:54 -07:00
2026-02-04 21:01:34 -08:00
2026-07-28 21:31:02 -07:00
2026-09-29 21:19:29 -07:00
2026-09-29 01:06:32 -07:00
2026-09-29 12:24:59 -07:00
2026-09-29 12:24:59 -07:00
2026-09-29 21:19:29 -07:00
2026-09-29 14:24:31 -07:00
2026-09-29 01:06:08 -07:00
2026-09-29 01:05:02 -07:00
2026-08-16 15:22:22 -07:00
2026-09-20 13:03:23 -07:00
2026-07-17 18:42:53 -07:00
2026-09-29 01:05:24 -07:00
2026-09-07 18:10:38 -07:00
2026-08-24 10:42:52 -07:00
2026-09-29 01:06:08 -07:00
2026-09-16 00:18:09 -07:00
2026-08-31 14:32:20 -07:00
2026-08-29 14:46:50 -07:00