robertkirkman / sm64ex-coop

SM64 online co-op mod, forked from https://github.com/sm64pc/sm64ex, changes for Android and other open-source UNIX-like platforms
43 stars 14 forks source link

something is wrong with the sounds #17

Open abdogm opened 1 month ago

abdogm commented 1 month ago

i just freshly installed the game after compiling it and the sounds in game like this.

https://github.com/robertkirkman/sm64ex-coop/assets/72724405/0c836925-d2c9-429c-882a-2ecd484cbf83

is this a bug or something wrong from my end ? and (if possible) what is the fix for it

robertkirkman commented 1 month ago

Hi, please go to Termux and get to the screen that has the symbols ~ $ at the bottom, then type termux-info and push enter, and send the result here. This will show some information about your device.

abdogm commented 1 month ago

Hi, please go to Termux and get to the screen that has the symbols ~ $ at the bottom, then type termux-info and push enter, and send the result here. This will show some information about your device.

here it is. btw i used izzy2fancy builder

Termux Variables: TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APPAM_SOCKET_SERVER_ENABLED=true TERMUX_APPAPK_PATH=/data/app/~~wJ4Es1O7aZldp_XbDoMKXQ==/com.termux-veXvuqpI4If5_3HLlpffZA==/base.apk TERMUX_APPAPK_RELEASE=GITHUB TERMUX_APPFILES_DIR=/data/user/0/com.termux/files TERMUX_APPIS_DEBUGGABLE_BUILD=true TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false TERMUX_APPPACKAGE_MANAGER=apt TERMUX_APPPACKAGE_NAME=com.termux TERMUX_APPPACKAGE_VARIANT=apt-android-7 TERMUX_APPPID=21022 TERMUX_APPSE_FILE_CONTEXT=u:object_r:app_data_file:s0:c99,c258,c512,c768 TERMUX_APPSE_INFO=default:targetSdkVersion=28:complete TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c99,c258,c512,c768 TERMUX_APPTARGET_SDK=28 TERMUX_APPUID=10611 TERMUX_APPUSER_ID=0 TERMUX_APPVERSION_CODE=118 TERMUX_APP__VERSION_NAME=0.118.0+561ac24 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.0+561ac24 TERMUXUSER_ID=0 Packages CPU architecture: aarch64 Subscribed repositories: # sources.list deb https://packages-cf.termux.dev/apt/termux-main/ stable main Updatable packages: bash/stable 5.2.26-1 aarch64 [upgradable from: 5.2.15-1] termux-tools version: 1.42.1 Android version: 13 Kernel build information: Linux localhost 5.10.149-android12-9-00001-gda3d81545d1d-ab9545656 #1 SMP PREEMPT Tue Jan 31 05:44:42 UTC 2023 aarch64 Android Device manufacturer: Xiaomi Device model: 23049PCD8G LD Variables: LD_LIBRARY_PATH= LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so

robertkirkman commented 1 month ago

Sorry for delay. What I would like you to try for me is, if you can, check out a specific commit of sm64ex-coop Beta 35 for Android from my repository. You can do that by going to a shell in izzy2fancy SM64 Builder Termux using the Ctrl + C button combination, then typing this

cd sm64ex-coop
git checkout 96e6e67
git submodule update --init --recursive
make distclean
make
cp build/us_pc/sm64.us.apk /storage/emulated/0

This will produce a beta 35 apk for you and then I would like you to do is uninstall your sm64ex-coop apk temporarily and install that one, then tell me whether you hear the same exact sounds or if the sounds are different at all in that version, on your device. Thank you for helping and I know that's a lot of work to do so if it's too much you don't have to try that.

abdogm commented 1 month ago

Sorry for delay. What I would like you to try for me is, if you can, check out a specific commit of sm64ex-coop Beta 35 for Android from my repository. You can do that by going to a shell in izzy2fancy SM64 Builder Termux using the Ctrl + C button combination, then typing this

cd sm64ex-coop
git checkout 96e6e67
git submodule update --init --recursive
make distclean
make
cp build/us_pc/sm64.us.apk /storage/emulated/0

This will produce a beta 35 apk for you and then I would like you to do is uninstall your sm64ex-coop apk temporarily and install that one, then tell me whether you hear the same exact sounds or if the sounds are different at all in that version, on your device. Thank you for helping and I know that's a lot of work to do so if it's too much you don't have to try that.

no need. it is the least i can do to help and beta 35 still has the same issue is it just me or you also facing it ?

robertkirkman commented 1 month ago

Thank you, if you can, you should also try this method and check whether the sounds are also messed up for you in there. (reset your git repository back to normal with git checkout android first, if you have difficulty you can uninstall and reinstall the app). That should switch the game's SDL2 audio backend to PulseAudio for Android automatically within your Termux.

For my devices this problem doesn't happen. This problem is something that very rarely happens, or possibly only for your device.

robertkirkman commented 1 month ago

Download the app-universal-debug.apk from here and use it to view the app's X11 window when you run those commands. Touch "Preferences" in Termux:X11 and set Touchscreen Input Mode to "Direct Touch" to use native multitouch controls within the app window.

abdogm commented 1 month ago

Thank you, if you can, you should also try this method and check whether the sounds are also messed up for you in there. (reset your git repository back to normal with git checkout android first, if you have difficulty you can uninstall and reinstall the app). That should switch the game's SDL2 audio backend to PulseAudio for Android automatically within your Termux.

For my devices this problem doesn't happen. This problem is something that very rarely happens, or possibly only for your device.

this method has no sound issues now what should i do next ?

robertkirkman commented 1 month ago

That's awesome to hear, thank you for checking, well, now you can try to play using that method, and if you have framerate issues or struggle with configuring it, tell me, and I know how to tweak its render API settings, and other settings, and can tell you. I'm sorry the SurfaceFlinger + AAudio backend for SDL2 is not working for you here but at least for now the X11 + PulseAudio layer is helping.

One other thing that has changed is that by doing that you also switch from using SDL 2.28 to SDL 2.30. SDL 2.30 has some AAudio improvements over SDL 2.28 so, fairly soon, when I bump the precompiled SDL2 for SurfaceFlinger + AAudio I provide here to a newer version, you might notice an improvement.