FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
549 stars 107 forks source link

No sound on Linux? #374

Open ghost opened 6 years ago

ghost commented 6 years ago

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?

mittorn commented 6 years ago

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

FreeSlave commented 6 years ago

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

ghost commented 6 years ago

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

FreeSlave commented 6 years ago

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.

a1batross commented 6 years ago

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. %)

mittorn commented 6 years ago

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?

FreeSlave commented 6 years ago

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