Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions csound-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@
:group 'csound-mode
:type 'string)

;; default for wsl2/wslg (win11 with WSLg)
(and (string-empty-p csound-play-flags)
(string-match "linux" (format "%s" system-type))
(string-match "WSL2" operating-system-release)
(not (string-empty-p (getenv "PULSE_SERVER")))
(setq csound-play-flags "-+rtaudio=pulse -+server=unix:$PULSE_SERVER"))

(defcustom csound-render-flags ""
"Additional flags to pass to csound when rendering csound to file."
:group 'csound-mode
Expand Down