Comments (6)
Pyxel uses the sounddevice (https://github.com/spatialaudio/python-sounddevice/tree/0.3.11), the Python wrapper of PortAudio. It seems that there's no way to detect the audio card is active or not in the soudedevice APIs (am I right?), so I need to change the soundedevice or detect it before using it.
I'll investigate.
from pyxel.
Well at least you could try/catch in audioplayer.py when the call to OutputStream is made to catch the error.
Maybe no the most clean way, but would at least prevent the crash and stackdump.
(I know that I should install the audio driver, but that PC has proved to be painful on that point)
from pyxel.
Exactly! I overlooked sounddevice raised exception. I'll catch it.
from pyxel.
I've seen that there is this function though:
http://python-sounddevice.readthedocs.io/en/0.3.11/#sounddevice.query_devices
Not necessarily useful here, but if you want to allow at some point the user to select which audio device to use, that could be an idea!
from pyxel.
Thank you for the information!
Though I haven't released it as python package for PyPI not yet, I fixed it in the master branch.
from pyxel.
This bug is fixed in 0.7.3.
Please let me know if it doesn't work.
from pyxel.
Related Issues (20)
- Confusion with `blt` function HOT 7
- Unable to import classes from different files using https://kitao.github.io/pyxel/wasm/launcher/?run= HOT 6
- palette only 0..254 (v2.0.2) HOT 2
- mouse_wheel never become 0 HOT 3
- Pyxel Editor crash when selecting Music Editor HOT 6
- Non pixel perfect pixels on the right side of the screen HOT 29
- Pyxel not running HOT 4
- Pyxel crash when starting edit or hello world example HOT 1
- Don't start when I ask for
- command for the terminal didn't work (pycharm) HOT 2
- Slide sound effect only works once HOT 4
- Unable to build a pyxel to exe application on a drive other than C:/ on Windows. HOT 1
- pyxel edit で音符マークを押したら music_editor.py の インデックスエラーで異常終了する。 HOT 1
- `pyxel.sqrt(0)` returns 1.7976931348623157e+308 HOT 4
- Id like to edit the game on web. HOT 3
- Drone yazılımı arıyorum HOT 1
- Please tell me your work with Pyxel (Part5) HOT 6
- New functions HOT 2
- pyxel run of .pyxapp file results in "no such file: 'filename.pyxapp.py' HOT 2
- How to run Pyxel with the latest Emscripten (3.1.46+) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyxel.