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

How to install? #1

Open
ThreeDeeJay opened this issue Oct 7, 2023 · 4 comments
Open

How to install? #1

ThreeDeeJay opened this issue Oct 7, 2023 · 4 comments

Comments

@ThreeDeeJay
Copy link

I'm pretty new to modding on Android so I'm really confused how to install .so mods like this.
I know this mentions installing SAUtils but I'm not sure how to install that either.
There's also the ASILoader, but I'm not sure how relevant or even useful it is to this particular mod.
So, should we modify and rebuild the APK, install a separate one to install mods, copy the .so files somewhere or something else? 🤔

@RusJJ
Copy link
Collaborator

RusJJ commented Oct 7, 2023

You have mods folder. Guess by the name now

@ThreeDeeJay
Copy link
Author

@RusJJ So the unmodified APK supports mods?
I found this https://libertycity.net/files/gta-san-andreas-ios-android/192495-aml-apk-s-modloader-i-cleo.html
Which kinda works (I get the HRTF and 44100hz options) but after I install that, both HRTF and Positional Audio just mix audio in stereo without any HRTF. Same happens if I update the SAUtils and OpenAL .so files.
image
However, if I delete the game data/mods folder, then turning on positional audio does spatialize the audio.
But I want to use this OpenAL Soft mod, particularly because I want to be able to use my own HRTF MHR file/s from here, if possible.

@RusJJ
Copy link
Collaborator

RusJJ commented Oct 10, 2023

I was not planning to add MHR files loading but i don't know why. I will take a look at it later. Right now it loads a default simple version.

@ThreeDeeJay
Copy link
Author

It seems loading MHR might already be possible, according to this log:
kcat/openal-soft#46 (comment)

I/ALLIB   ( 7708): AL lib: (II) DirectorySearch: Searching / for *.mhr
I/ALLIB   ( 7708): AL lib: (II) DirectorySearch: Searching /usr/local/share/openal/hrtf for *.mhr
I/ALLIB   ( 7708): AL lib: (II) DirectorySearch: Searching /usr/share/openal/hrtf for *.mhr
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Loading Built-In 44100hz...
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Detected data set format v1
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Loaded HRTF support for format: Stereo 44100hz
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Adding built-in entry "Built-In 44100hz"
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Loading Built-In 48000hz...
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Detected data set format v1
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Loaded HRTF support for format: Stereo 48000hz
I/ALLIB   ( 7708): AL lib: (II) AddBuiltInEntry: Adding built-in entry "Built-In 48000hz"
I/ALLIB   ( 7708): AL lib: (II) GetConfigValue: Key default-hrtf not found
I/ALLIB   ( 7708): AL lib: (II) UpdateDeviceParams: Pre-reset: *Stereo, Float, *44100hz, 1024 update size x4
I/ALLIB   ( 7708): AL lib: (II) UpdateDeviceParams: Post-reset: Stereo, Signed Short, 44100hz, 2048 update size x2
I/ALLIB   ( 7708): AL lib: (II) GetConfigValue: Key stereo-mode not found
I/ALLIB   ( 7708): AL lib: (II) GetConfigValue: Key hrtf-mode not found
I/ALLIB   ( 7708): AL lib: (II) aluInitRenderer: HRTF enabled, "Built-In 44100hz"
I/ALLIB   ( 7708): AL lib: (II) alcCreateContext: Created context 0x42b016a0

However, copying the files to the folder above might be an issue for people who haven't rooted their phone (not a problem for me, because loading the MHR files externally (like say, the sdcard/Android/data// seems to be a lot more complicated:
kcat/openal-soft#46 (comment)
kcat/openal-soft#662 (comment)
https://github.com/kcat/openal-soft/blob/60ed9ec8bad22cc904ff0dec9b6d7dfe3c704e56/alsoftrc.sample#L161

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