-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conditionally set play flags for wsl2/wslg on win11 #19
base: master
Are you sure you want to change the base?
Conversation
Looks legit issue and legit solution. I'll review tomorrow (and look into the midi-sco issue as well) But we need to take into accout that
|
I had this in my doom emacs config.el, but first I had to figure out the problem with csound-mode on wsl2 (and how audio works in wsl2 now). The idea of this PR is to set defaults on wsl2 so everything works out-of-the box without each user having to analyse the situation again. I understand the conflict between avoiding error messages for starters and not messing up csound configs of seasoned users. Not sure if a new variable like "csound-wsl-flags" would help. |
We could rethink the configuration variable, and set csound options on individual argument basis. So that rtaudio vars would be their own emacs var, within that, we could set them to defaults depending on the system configuration. |
Sounds good to me. Maybe we could have a defvar (not defcustom) like
Then have defcustoms like But then they need to be used for How to proceed now? Reject/Delete the current PR, then either you implement this, or I try to create a new cleaner PR? |
Hi, with current versions of WSL2 (Windows Subsystem for Linux) graphics and audio are possible, the latter due to a running Pulse Server on WSLg, linked to the users linux distro via env var $PULSE_SERVER.
I added some code that
Cheers
Thorsten
PS
sorry for the accidental formatting noise in the PR.
And something similar needs to be done for csound-repl, but I'm not yet there, maybe another PR soon