Skip to content

Fix sound split exception during startup on AppVeyor CI runner#16270

Merged
seanbudd merged 3 commits into
nvaccess:masterfrom
mltony:soundSplitFix
Mar 6, 2024
Merged

Fix sound split exception during startup on AppVeyor CI runner#16270
seanbudd merged 3 commits into
nvaccess:masterfrom
mltony:soundSplitFix

Conversation

@mltony
Copy link
Copy Markdown
Contributor

@mltony mltony commented Mar 6, 2024

Link to issue number:

Closes #16269
Fixup of #16071

Summary of the issue:

Exception _ctypes.COMError is thrown at startup on AppVeyor CI runner because hno sound device is present.

Description of user facing changes

N/A

Description of development approach

Catching and logging exception. Returning from soundSplit.initialize function so that initialization can continue.

Testing strategy:

Not sure how to test on AppVeyor, but judging by the exception providded - this should fix the error.
Tested on my local computer to avoid syntax errors.

Known issues with pull request:

N/A

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@mltony mltony marked this pull request as ready for review March 6, 2024 19:57
@mltony mltony requested a review from a team as a code owner March 6, 2024 19:57
@mltony mltony requested a review from gerald-hartig March 6, 2024 19:57
Comment thread source/audio/soundSplit.py Outdated
Comment thread source/audio/soundSplit.py Outdated
Comment thread source/audio/soundSplit.py Outdated
@seanbudd seanbudd merged commit 25d408b into nvaccess:master Mar 6, 2024
@nvaccessAuto nvaccessAuto added this to the 2024.2 milestone Mar 6, 2024
Adriani90 pushed a commit to Adriani90/nvda that referenced this pull request Mar 13, 2024
…ess#16270)

Closes nvaccess#16269
Fixup of nvaccess#16071

Summary of the issue:
Exception _ctypes.COMError is thrown at startup on AppVeyor CI runner because hno sound device is present.

Description of user facing changes
N/A

Description of development approach
Catching and logging exception. Returning from soundSplit.initialize function so that initialization can continue.

Testing strategy:
Not sure how to test on AppVeyor, but judging by the exception providded - this should fix the error.
Tested on my local computer to avoid syntax errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVDA no longer works on machines without sound card, such as AppVeyor CI runner

3 participants