-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Segfault when launching portaudioPlayer + AudioPlayerWrapper on WSL2 #49
Comments
Actually in this setup also
|
Actually I think this output are kind of expected. On WSLg, audio support is implemented at the PulseAudio level, not at at the kernel/ALSA level (see microsoft/WSL#5816 (comment) and the really nice https://github.com/microsoft/wslg/blob/main/README.md#wslg-architecture-overview, search for PulseAudio there). YARP uses PortAudio, and the build of portaudio on conda-forge (and also on apt, actually) do not compile the pulseaudio backend of portaudio, only the alsa backend (the apt version also the jack backend). |
This is true, but it is important to understand a few things:
So, in a nutshell, if the pulseaudio backend of Related issues: |
This README explains quite well how the pulse backend for Indeed, even in WSL2 if I run:
works fine, while simple
|
Adding in
now |
And after adding that file, now
|
I tested by playing a sound with:
then:
and
and not all the sound is actually playing, but something is played. |
Solution to issue cannot be found in the documentation.
Issue
On Ubuntu 24.04 on wSL2 (I tested that the audio plays well with
play examplesound.mp3
:Installed packages
Environment info
The text was updated successfully, but these errors were encountered: