New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Perform backend initialization in backend.__init__
#707
Conversation
8749477
to
15f3ebb
Compare
Codecov Report
@@ Coverage Diff @@
## master #707 +/- ##
==========================================
- Coverage 89.29% 89.23% -0.06%
==========================================
Files 25 25
Lines 2344 2351 +7
==========================================
+ Hits 2093 2098 +5
- Misses 251 253 +2
Continue to review full report at Codecov.
|
backend.__init__
backend.__init__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
elif 'soundfile' in _BACKENDS: | ||
_BACKEND = 'soundfile' | ||
else: | ||
warnings.warn('No audio backend is available.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that a warning is more appropriate.
Thanks! |
Co-authored-by: Brian Johnson <brianjo@fb.com> Co-authored-by: holly1238 <77758406+holly1238@users.noreply.github.com>
Initialize backend in
backend.__init__.py
.