aqrit wrote:what did you alter with Cheat Engine? the "s_khz" cvar?
edit [2]
https://github.com/JACoders/OpenJK/blob/a09d4 … nd_dma.cpp#L491
Sorry for late response. In cheat engine, what I did was searched for 44100 value and in-game I was switching s_useOpenAL from 1 to 0 and vice versa. Then through monitoring the changes in cheat engine I found memory address 00E5b774. Forcing its value to be 44100 made the game run at 44khz but it was clearly resampled, because audio was either distorted or accelerated.
Yesterday I took it a bit further - I tried debugging and searched for this address. I have basically 0 clue how to program or reverse engineer, but I tried it for fun. I managed to somehow get some of the game to output 44khz(or at least audio wasn't distorted or accelerated..) through modifying this address value(00E5b774) to 44100 and modifying all OpenAl32.AlSourceGetBuffers functions to push 44100 value instead of 22050. Music was still distorted, but menu button clicking audio were playing properly.
All this was for nothing anyway, because after I load a savegame, game freezes.
s_khz only applies to the standard software mixer in Q3 and has nothing to do with the OpenAL backend.
OpenAL generally runs at 48khz and if it doesn't sound like it's 48khz, then it's not working, and IIRC Jk2/JA was very picky on what sound cards were allowed to use the OpenAL backend depending on supported EAX extensions
I have creative X-fi Fatal1ty card (I got it as a gift) and OpenAL seems to work. I have 3D audio, though reverb is really lacking(I had to boost EAX effects by like 6dB for it to be even audible) and refraction seems to not be there. It's supposed to be heard at the start of the 2nd level(artus mine) but it's clearly not there. So it's probably running EAX 2.0
Well, all seems to be mostly fine, so what's wrong?
I use audio mods, which basically are all 44khz. 3D audio doesn't work for these files. Yea, I can maybe try to change these audio files to 22khz, but I would for now prefer to make game run at 44khz native.