ALSA sound for Zsnes (and other 32-bit games)

Forum Forums General Tips and Tricks ALSA sound for Zsnes (and other 32-bit games)

  • 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)
  • Author
    Posts
  • #104121
    Member
    blur13

      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.

      #104122
      Member
      PPC
        Helpful
        Up
        1
        ::

        Many thanks!!!

        #104145
        Member
        marcelocripe
          Helpful
          Up
          1
          ::

          Thanks a lot for this tutorial.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.