Hallo List,
not really a Csound question, just trying my luck, maybe somebody did manage to run Csound on WSL2 (Windows Subsystem for Linux with Debian Unstable, Windows11)?
I can play mp3 files with MPV from the linux command line, so in general linux audio works from WSL2.
But ALSA does not find a soundcard, and Csound uses ALSA (see PS 2):
$ aplay -l
aplay: device_list:274: no soundcards found…
As described in PS 1, the newest version of WSL2 on WIN11 now has a
- minimal system distribution (wslg, g for gui), with running pulseaudio server
- user distribution (wsl2 e.g. debian), with env var PULSE_SERVER= /mnt/wslg/PulseServer
Somehow MPV worked out-of-the-box without any configurations from me. I wonder if there is a trick to make Csound work too?
Cheers
Thorsten
PS 2
$ csound instr.csd
[…]
orch now loaded
audio buffered in 256 sample-frame blocks
ALSA lib confmisc.c:855:(parse_card) cannot find card ‘0’
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5178:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5701:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2664:(snd_pcm_open_noupdate) Unknown PCM default
*** Cannot open device ‘default’ for audio input: No such file or directoryFailed to initialise real time audio input
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here