Skip to content
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

ALSA bug #42

Closed
cscherrer opened this issue Jul 22, 2021 · 4 comments
Closed

ALSA bug #42

cscherrer opened this issue Jul 22, 2021 · 4 comments

Comments

@cscherrer
Copy link

Hi, I'm getting this error:

julia> go()
ALSA lib conf.c:4133:(snd_config_update_r) Cannot access file /workspace/destdir/share/alsa/alsa.conf
ALSA lib conf.c:4133:(snd_config_update_r) Cannot access file /workspace/destdir/share/alsa/alsa.conf
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
┌ Warning: No audio device available, sounds and music will not play.
│ ALSA: Couldn't open audio device: No such file or directory
└ @ GameZero ~/.julia/packages/GameZero/JN07Y/src/GameZero.jl:292
ALSA lib conf.c:4133:(snd_config_update_r) Cannot access file /workspace/destdir/share/alsa/alsa.conf
ALSA lib conf.c:4133:(snd_config_update_r) Cannot access file /workspace/destdir/share/alsa/alsa.conf

I don't understand how GZ connects to ALSA, but of course there's no /workspace directory on my system. Sound works fine outside of this. Here's my sound setup:

➤ inxi -xxA
Audio:     Device-1: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: Gigabyte driver: snd_hda_intel v: kernel 
           bus-ID: 0a:00.3 chip-ID: 1022:1457 
           Device-2: NVIDIA TU102 High Definition Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 41:00.1 
           chip-ID: 10de:10f7 
           Device-3: Logitech C922 Pro Stream Webcam type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-1:2 chip-ID: 046d:085c 
           Device-4: Logitech Blue Microphones type: USB driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:3 
           chip-ID: 046d:0ab7 
           Device-5: Valve Valve VR Radio type: USB driver: cdc_acm,hid-generic,usbhid bus-ID: 3-1.3.2:8 chip-ID: 28de:2102 
           Device-6: Valve Valve VR Radio & HMD Mic type: USB driver: hid-generic,snd-usb-audio,usbhid bus-ID: 3-1.3.3:9 
           chip-ID: 28de:2102 
           Sound Server-1: ALSA v: k5.10.49-1-MANJARO running: yes 
           Sound Server-2: sndio v: N/A running: no 
           Sound Server-3: JACK v: 1.9.18 running: no 
           Sound Server-4: PulseAudio v: 14.2 running: no 
           Sound Server-5: PipeWire v: 0.3.31 running: yes 
@danilo-bc
Copy link
Contributor

This can probably be solved by having it direct to /usr/share/alsa/alsa.conf instead of /workspace/destdir

@cscherrer
Copy link
Author

Would this be in GameZero itself, or somewhere else? I didn't set anything to /workspace/destdir, that just seems to be a default somewhere

@danilo-bc
Copy link
Contributor

I clearly haven't looked deep into it, but from your error message, it spans from

device = SDL2.Mix_OpenAudio(Int32(22050), UInt16(SDL2.MIX_DEFAULT_FORMAT), Int32(2), Int32(1024) )

which calls SDL2 to create a device, then fails. I'm not sure how everything it built together. Maybe it's a reference in SDL2, maybe it's some environment variable in GameZero.

Since the previous lines don't error out, my guesses are that either SDL is initiating improperly or the function call is not implemented generically. This call seems to be the same for any operational system (since I don't see any clear checks of operational system in the surroundings of the code), so some differences should happen in the lower layers of the API.

@aviks
Copy link
Owner

aviks commented Jul 24, 2021

This is a bug in how we build and distribute sound libraries on linux. I've documented a manual workaround in this Yggdrasil isue: JuliaPackaging/Yggdrasil#1432 (comment) . That issue discusses this in a lot of detail, so I'll close this here. Unfortunately, there is no clear solution in view yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants