xash3d icon indicating copy to clipboard operation
xash3d copied to clipboard

No sound on Linux?

Open ghost opened this issue 7 years ago • 7 comments

Hi,

I recently upgraded to the latest official version, which works fine apart from the lack of sound. Previous version didn't have this issue.

I'm on x64 Linux using Pulseaudio.

Any ideas?

ghost avatar Apr 13 '18 14:04 ghost

Xash3D is 32-bit application. By default, 64-bit distros does not support sound in 32-bit applications at all. Please install 32-bit dependencies to make it work. For pulseaudio and deb-based distro it is libpulse:i386

mittorn avatar Apr 13 '18 15:04 mittorn

For me deleting the packaged libSDL2 solved this issue. Of course you need to have 32-bit version of libSDL2 installed on your system.

FreeSlave avatar Apr 13 '18 16:04 FreeSlave

Thank you, that fixed it for me. Installing my distro's i386 version came with an unnervingly large list of dependencies so I just obtained the lib from a .deb

ghost avatar Apr 13 '18 16:04 ghost

I checked the output of SDL2 configure in travis logs and it says Audio drivers : disk dummy oss alsa(dynamic) and pulse(dynamic) must be also present in order to make compiled SDL2 library support sound. I guess they are not there because their headers were not found during the configure.

FreeSlave avatar Apr 13 '18 16:04 FreeSlave

If SDL2 does support dynamic alsa or pulseaudio, it will be good to enable it during SDL2 compilation.

The main feature of portable version is distro independence and because any other package managers for Linux than Portage sucks. %)

a1batross avatar Apr 13 '18 20:04 a1batross

I enabled this already for releases. Alsa and pulseaudio installed on debian chroot. I do not know how was built last release. And alsa was enabled in travis https://github.com/FWGS/xash3d/blob/c4059aa93cabcc2760ec4c82d227da0cde947d01/.travis.yml it worked on precise travis machines. Maybe we need libasound2:i386 now?

mittorn avatar Apr 14 '18 06:04 mittorn

libasound2-dev:i386 maybe? And libpulse-dev:i386 You can also clearly denote your desire to have dynamically loaded pulse and alsa by --enable-alsa-shared and --enable-pulseaudio-shared

Another problem with the release archive is that it does not have executable bits on xash3d and xash3d.sh

FreeSlave avatar Apr 15 '18 13:04 FreeSlave