It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
When trying to run the game, I get a Critical Error! window with the following message:

Unable to init SDL mixer: ALSA: Couldn't open audio device: No such device

And in the console, I can see the following:

ALSA lib pcm_hw.c:1701:(_snd_pcm_hw_open) Invalid value for card

I am on Fedora 25 which is using PulseAudio.

As far as I can gather from this error, it's that something is attempting to initialise the card/device in the wrong order.

alsa-info recognises two sound cards:

0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf7080000 irq 52
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xf7800000 irq 55

It also recognises two devices:

28:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
2a:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457

I'm pretty sure it should be 0,0 or 0,1. But I am frankly not entirely sure. The HDA-Intel confuses me, since I thought this was an AMD Socket motherboard, but perhaps Intel still provides the built-in soundcard.

Anyone know what to do?
No posts in this topic were marked as the solution yet. If you can help, add your reply
avatar
Svip: When trying to run the game, I get a Critical Error! window with the following message:

Unable to init SDL mixer: ALSA: Couldn't open audio device: No such device

And in the console, I can see the following:

ALSA lib pcm_hw.c:1701:(_snd_pcm_hw_open) Invalid value for card

I am on Fedora 25 which is using PulseAudio.

As far as I can gather from this error, it's that something is attempting to initialise the card/device in the wrong order.

alsa-info recognises two sound cards:

0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf7080000 irq 52
1 [Generic ]: HDA-Intel - HD-Audio Generic
HD-Audio Generic at 0xf7800000 irq 55

It also recognises two devices:

28:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
2a:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457

I'm pretty sure it should be 0,0 or 0,1. But I am frankly not entirely sure. The HDA-Intel confuses me, since I thought this was an AMD Socket motherboard, but perhaps Intel still provides the built-in soundcard.

Anyone know what to do?
I've also got problem with SDL Audio on OpenSuSE Leap 42.2:

unable to init SDL: Audio target 'pulse'not available

What worked for me was to change the Audio-Target with

export SDL_AUDIODRIVER=alsa

Probably for you, it could help to change the audiodriver to "pulse" or "pulseaudio"
Unfortunately not. 'pulse' and 'pulseaudio' just yields errors saying each respective target is not available. I also tried 'alsa', just to be sure, but that yields the original error.

Thanks for the suggestion, anyway.
After much trying, I solved the issue.

First, make sure the SDL_AUDIODRIVER is either unset or set to alsa:

export SDL_AUDIODRIVER=alsa

Then set AUDIODEV to pulse:

export AUDIODEV pulse

Then sound works!

(Unfortunately, I cannot make my own post as a solution.)
Post edited March 31, 2017 by Svip
Good job Maniac242 :-)

I'v had the exact same issue on openSUSE Tumblweed.
Doing "export SDL_AUDIODRIVER=alsa" does solve the issue.

Just by curiosity, i will check if something is missing about that pulse/pulseaudio target...

edit: I just checked, it seems that the game has it's own libSDL built-in and the pulse/pulseaudio driver is not part of it.
Post edited April 02, 2017 by ced117
I don't have this issue, but I have an unusual alsa setup.

It's too bad that they compiled SDL into the program. The license now allows it but it's not recommended and not a very good idea. I bet if it were dynamically linked this would be solved by directing the game to use the system SDL instead.
I have beat the expert mode under Linux, try my /etc/asound.conf

ctl.!default {
type hw
card 0
}

pcm.my_card {
type hw
card 0
# mmap_emulation true
}

pcm.dmixed {
type dmix
ipc_key 1024
# ipc_key_add_uid false # let multiple users share
# ipc_perm 0666 # IPC permissions for multi user sharing (octal, default 0600)
slave {
pcm "my_card"
# rate 48000
# period_size 512
}
}

pcm.dsnooped {
type dsnoop
ipc_key 2048
slave {
pcm "my_card"
# rate 48000
# period_size 128
}
}

pcm.asymed {
type asym
playback.pcm "dmixed"
capture.pcm "dsnooped"
}

pcm.pasymed {
type plug
slave.pcm "asymed"
}

pcm.dsp0 {
type plug
slave.pcm "asymed"
}

pcm.!default {
type plug
slave.pcm "asymed"
}
This is Great! just picked up the game from the giveaway today and i was wondering what was wrong. I added the two variables to the start of the start.sh & it worked! I added these to the top of the script:

# For "pulse" sdl audio error add in start.sh:
export SDL_AUDIODRIVER=alsa
export AUDIODEV pulse
Post edited December 17, 2020 by hm11