Repository navigation
Do not show a modal error when input monitoring cannot open the device - #12073
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI (base), Organization UI (inherited) Review profile: CHILL Plan: Advanced Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between d18124a and f4107e25ac6014e9a6bb157ea3a0f7235966e851. 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughWhen Priority: ⬇️ Low — Defer this narrow input-monitoring change because it only replaces an intrusive device-open error dialog with logging while leaving recording error handling unchanged. Estimated code review effort: 1 (Trivial) | ~2 minutes Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to Input-monitoring device-open failures are now logged rather than interrupting users with a modal dialog, while the separate recording error path remains unchanged. The focused change is ready to merge. 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
Warning Linked repositories: Public OSS repositories can only analyze public repositories installed in this organization. No linked repositories were analyzed; skipped Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Input monitoring runs on its own whenever the project changes, so a device it cannot open produced a modal error dialog in the middle of unrelated work - importing a file, for instance, which has nothing to do with the input device and completes fine. The failure is now logged instead. Starting a recording still reports the error: that path goes through Au3Record::start and recorderrors.h, which is untouched.
f4107e2 to
cf0c756
Compare
|
@jonata thank you! merged |
Do not show a modal error when input monitoring cannot open the device (#12073)
Resolves: #12070
AudioIO::StartMonitoringraised a modalShowErrorDialogwhen it could notopen the input device. Input monitoring restarts on its own whenever the
project changes, so the dialog appeared in the middle of unrelated work — for
example while importing a file, which has nothing to do with the input device
and completes successfully either way. The user is interrupted by a modal error
about a device they were not using.
The failure is now logged instead of shown.
Starting a recording still reports it. That is a separate path
(
Au3Record::start→src/record/recorderrors.h) and is untouched, sopressing Record with an unusable device still produces the error.
Not addressed here:
PlaybackControllerguards monitoring withinputDevices().empty() || inputChannelsAvailable() <= 0, whileAu3AudioInput::startAudioEngineMonitoring()does not. That guard would nothave helped in this case anyway —
-9996 Invalid devicemeans a device isenumerated but cannot be opened — so I left it alone rather than widen the
change.
Verified: builds,
ctest5/5, codestyle clean.Recommended:
QA: