Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

something is wrong with the sounds #17

Open
abdogm opened this issue May 25, 2024 · 8 comments
Open

something is wrong with the sounds #17

abdogm opened this issue May 25, 2024 · 8 comments

Comments

@abdogm
Copy link

abdogm commented May 25, 2024

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

Screenrecorder-2024-05-25-05-44-33-904.mp4

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

@robertkirkman
Copy link
Owner

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
Copy link
Author

abdogm commented May 29, 2024

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_APP__AM_SOCKET_SERVER_ENABLED=true TERMUX_APP__APK_PATH=/data/app/~~wJ4Es1O7aZldp_XbDoMKXQ==/com.termux-veXvuqpI4If5_3HLlpffZA==/base.apk TERMUX_APP__APK_RELEASE=GITHUB TERMUX_APP__FILES_DIR=/data/user/0/com.termux/files TERMUX_APP__IS_DEBUGGABLE_BUILD=true TERMUX_APP__IS_INSTALLED_ON_EXTERNAL_STORAGE=false TERMUX_APP__PACKAGE_MANAGER=apt TERMUX_APP__PACKAGE_NAME=com.termux TERMUX_APP__PACKAGE_VARIANT=apt-android-7 TERMUX_APP__PID=21022 TERMUX_APP__SE_FILE_CONTEXT=u:object_r:app_data_file:s0:c99,c258,c512,c768 TERMUX_APP__SE_INFO=default:targetSdkVersion=28:complete TERMUX_APP__SE_PROCESS_CONTEXT=u:r:untrusted_app_27:s0:c99,c258,c512,c768 TERMUX_APP__TARGET_SDK=28 TERMUX_APP__UID=10611 TERMUX_APP__USER_ID=0 TERMUX_APP__VERSION_CODE=118 TERMUX_APP__VERSION_NAME=0.118.0+561ac24 TERMUX_MAIN_PACKAGE_FORMAT=debian TERMUX_VERSION=0.118.0+561ac24 TERMUX__USER_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
Copy link
Owner

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
Copy link
Author

abdogm commented May 31, 2024

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
Copy link
Owner

robertkirkman commented May 31, 2024

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
Copy link
Owner

robertkirkman commented May 31, 2024

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
Copy link
Author

abdogm commented Jun 1, 2024

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
Copy link
Owner

robertkirkman commented Jun 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants