Author Topic: Linux: No sound card detected (solved)  (Read 5011 times)

Offline _dje

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Linux: No sound card detected (solved)
« on: February 29, 2016, 12:58:01 pm »
Hi!

I compiled openxcom (v1.0) on  Solus Project linux distribution.

The game launches well  and is fully playable, but my  i have no sound.
In the log file, i have :
[29-02-2016 11:46:19]   [ERROR]   No available audio device
[29-02-2016 11:46:19]   [WARN]   No sound device detected, audio disabled.

This is the output of 'lspci | grep Audio':
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)
01:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)

Any idea ?

Thanks

« Last Edit: March 02, 2016, 12:47:48 pm by _dje »

Offline winterheart

  • Colonel
  • ****
  • Posts: 180
  • Fellow Squaddie
    • View Profile
Re: Linux: No sound card detected
« Reply #1 on: February 29, 2016, 05:19:26 pm »
You compiled it without SDL_mixer library?

Offline _dje

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Linux: No sound card detected
« Reply #2 on: February 29, 2016, 09:33:49 pm »
Thank you for your answer.

But, no, openxcom is compiled with SDL_mixer.

This is the output of ldd openxcom
   linux-vdso.so.1 (0x00007fff433da000)
   libSDL_mixer-1.2.so.0 => /usr/lib64/libSDL_mixer-1.2.so.0 (0x00007f1d0b46a000)
   libSDL_gfx.so.15 => /usr/local/lib/libSDL_gfx.so.15 (0x00007f1d0b254000)
   libSDL_image-1.2.so.0 => /usr/lib64/libSDL_image-1.2.so.0 (0x00007f1d0b036000)
   libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x00007f1d0ada3000)
   libGL.so.1 => /usr/lib64/libGL.so.1 (0x00007f1d0ab11000)
   libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f1d0a790000)
   libm.so.6 => /usr/lib64/libm.so.6 (0x00007f1d0a48e000)
   libgcc_s.so.1 => /usr/lib64/libgcc_s.so.1 (0x00007f1d0a278000)
   libc.so.6 => /usr/lib64/libc.so.6 (0x00007f1d09ea8000)
   libpthread.so.0 => /usr/lib64/libpthread.so.0 (0x00007f1d09c8a000)
   libdl.so.2 => /usr/lib64/libdl.so.2 (0x00007f1d09a86000)
   libexpat.so.1 => /usr/lib64/libexpat.so.1 (0x00007f1d0985c000)
   libglapi.so.0 => /usr/lib64/libglapi.so.0 (0x00007f1d0962e000)
   libXext.so.6 => /usr/lib64/libXext.so.6 (0x00007f1d0941b000)
   libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x00007f1d09218000)
   libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x00007f1d09012000)
   libX11-xcb.so.1 => /usr/lib64/libX11-xcb.so.1 (0x00007f1d08e10000)
   libX11.so.6 => /usr/lib64/libX11.so.6 (0x00007f1d08ad1000)
   libxcb-glx.so.0 => /usr/lib64/libxcb-glx.so.0 (0x00007f1d088b7000)
   libxcb-dri2.so.0 => /usr/lib64/libxcb-dri2.so.0 (0x00007f1d086b2000)
   libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x00007f1d0848f000)
   libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x00007f1d08289000)
   libdrm.so.2 => /usr/lib64/libdrm.so.2 (0x00007f1d0807a000)
   /usr/lib64/ld-linux-x86-64.so.2 (0x00007f1d0b6b7000)
   libXau.so.6 => /usr/lib64/libXau.so.6 (0x00007f1d07e76000)

Offline _dje

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Linux: No sound card detected
« Reply #3 on: February 29, 2016, 11:55:16 pm »
But you're right, it's sdl_mixer problem.

It tries to open /dev/dsp, even though i use alsa and pulseaudio.

I try to change the env variable SDL_AUDIODRIVER to pulse or alsa (found here https://stackoverflow.com/questions/10465202/initializing-sdl-mixer-gives-error-no-available-audio-device) but it doesn't work.
I guess sdl_mixer was not compiled with pulse or alsa support.
I'll do a bug report to solus-project

Offline _dje

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: Linux: No sound card detected
« Reply #4 on: March 01, 2016, 12:09:27 pm »
For the record,  there is a workaround using padsp