- This topic has 2 replies, 3 voices, and was last updated Apr 5-7:17 pm by marcelocripe.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
Forum for users of antiX Linux. Mean and Lean and Proudly anti-fascist.
Forum › Forums › General › Tips and Tricks › ALSA sound for Zsnes (and other 32-bit games)
This is based on the excellent post here
https://www.antixforum.com/forums/topic/alsa-and-32bit-game/
This is a more practical, step by step, guide to implementing the solution.
First you need to collect the required libraries:
sudo apt install caps:i386
sudo apt install libasound2-plugin-equal:i386
create a new folder in home directory called libasound and copy the libraries
mkdir libasound
cd libasound
cp /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_equal.so .
cp /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_ctl_equal.so .
cp /usr/lib/ladspa/caps.so .
Restore the 64 bit libraries
sudo apt install caps
sudo apt install libasound2-plugin-equal
Need to remove the need for password when using sudo mv
Add
%users ALL=(root) NOPASSWD: /usr/bin/mv
to /etc/sudoers.d/antixers
create file zsnes.sh
#!/bin/bash
sudo mv /etc/asound.conf asound.conf-backup && LD_LIBRARY_PATH=/home/$USER/libasound zsnes && sudo mv asound.conf-backup /etc/asound.conf
Might be best to replace $USER with your actual user name.
chmod 755 zsnes.sh
copy to $PATH
start zsnes by typing zsnes.sh
Or edit the desktop file /usr/share/applications/zsnes.desktop and change the Exec to zsnes.sh
Make sure to refresh the menu.
sudo desktop-menu --write-out-global
Thats it!
This also works with the Loki linux port of Heroes 3, and I assume, all other games where you get the error:
ALSA lib dlmisc.c:287:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_equal.so ((null): /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_equal.so: cannot open shared object file: No such file or directory)
In the script change zsnes with the path to the game binary.
| Cookie | Duration | Description |
|---|---|---|
| cookielawinfo-checkbox-analytics | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics". |
| cookielawinfo-checkbox-functional | 11 months | The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". |
| cookielawinfo-checkbox-necessary | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary". |
| cookielawinfo-checkbox-others | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. |
| cookielawinfo-checkbox-performance | 11 months | This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance". |
| viewed_cookie_policy | 11 months | The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data. |