Closed awe444 closed 1 year ago
ALSA lib pcm_dmix.c:1032:(snd_pcm_dmix_open) unable to open slave
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
seems kinda pertinent, the last line shows a few forum posts when I google for it
OK, I discovered and resolved the issue with my setup and will share here in case anyone has the same problem.
I was lacking a .asoundrc
config file in my home directory. A barebones one that worked for my setup is:
defaults.pcm.!card 1
defaults.pcm.!device 0
defaults.ctl.!card 1
but your own card and device numbers will vary.
For most other programs I use in Linux (the majority of which I think use SDL for audio in my case) I've been able to get by with an environment variable like
export AUDIODEV="hw:CARD=1,DEV=0"
but for whatever reason the audio backend in OpenJKDF2 doesn't detect that variable and instead seems to want the .asoundrc
file (or possible a similar file in /etc/
would work, I haven't tried that.
First of all, thank you for this amazing project. It's such a joy playing this game again without the hassle of having to deal with compatibility layers.
I'm building and running the latest source as of today on Linux ubuntu 22.04. Using Steam game files. Everything works great in terms of graphics and input, but for some reason I can't hear any audio EXCEPT for the ogg track background music. e.g., if I run the executable and start a new game, I hear no sound of any kind until exiting the cantina in the first level, at which point the Track12.ogg music can be heard. No SFX can be heard including weapon fire, enemies, etc. Cutscene videos also are silent. I checked the volume sliders in settings and they're all turned up.
I'm certain this is an issue specific to my build and/or setup since no one else seems to have reported this problem. Here's the log output from booting the game through to exiting the cantina in level 1, at which point the log shows the volume turning up from 0 to 1.00.