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
{{ message }}
Repository navigation
Bug: list_audio_devices and system-audio capture can hang ~30s and return a misleading timeout #40
list_audio_devices (and start_recording with audio.source: "system", which resolves the loopback device first) can hang for the full 30s timeout and then fail with ffmpeg timed out after 30s, instead of listing devices or giving an actionable message.
Where
src/utils/audioDevices.tslistDshowAudioDevices() runs ffmpeg -hide_banner -list_devices true -f dshow -i dummy with a 30s runCapture timeout; resolveLoopbackDevice calls it before recording.
Live evidence
list_audio_devices returned ffmpeg timed out after 30s.
start_recording { audio: { source: "system" } } returned the same (it resolves the device first, so the hang blocks the recording start).
Direct check: ffmpeg -list_devices true -f dshow -i dummy did not return within 8s on this machine.
Suggested fix
Use a much shorter timeout for device enumeration (e.g. 8-10s) and return a clear message ("could not enumerate audio devices") rather than the raw ffmpeg timed out text.
Investigate a more robust enumeration (the dshow -list_devices invocation hangs on some setups). Ensure stdin is closed and stderr is read even when the process is killed.
Consider caching the device list so audio recordings do not pay the enumeration cost (or hang) on every call.
Activity
fix: cap audio device enumeration and give a clear error on hang (#40)
fix: cap audio device enumeration and give a clear error on hang (#40) (