Open mrdude2478 opened 1 year ago
Thanks, I'll have a look at that. Much regards for replying and thanks for this wonderfull port. I have also compiled the PC version and the modded qvm files from that work great on the switch version.
@fgsfdsfgs
I was able to compile ok for the switch using the new ioq3 source. Just a few mods were needed to make it switch compatible.
On further investigation it seems it's openAl related, would you be able to update you openAl-Soft to the newer 1.23 version from here, I can't get this or your older version on your git to compile using the latest devkit pro.
https://www.openal-soft.org/#download
EDIT, using a modded qvm file I can switch between AL and SDL drivers and still get the same issues while switching, probably when switch the game is loading the audio twice and this could be the cause of the issues, I will look into this further.
Update:
I am nearer to finding the issue with the addons causing crap sounds on the switch now, In qcommon\q_shared.h You can set the path of the game you are creating - ie: #define BASEGAME "baseq3"
If the game is not built with that "base3" and you change it to something else (even for the original game) you get sound issues. For example, you can have 2 folders - base3 and base4 and put the exact same pak files in each folder. Even though both folders exists with the same files in each - the build nro will cause sound issuse the the basegame path differs from "base3" when compiled.
Also if you don't have the following file: sound/feedback/hit.wav sound does not get initialised properly.
EDIT: I have compiled the Team Arena (missionpack) as a standalone game, same as openarena and don't have any sound issues with them now in this format. For Team arena standalone I needed to get some files from the quake base game as they share game resources.
As per the title, standalone files are good and run on the switch without sound issues. Using the game menu to switch between team arena and other mods such as open arena produces bad sound. Probably SLD or OpenAL sound channels are not being released when switching and then reopening again when mods are switched, this is possibly what's causing the issues. Do you have any hints on where in the source code this can be modded? Thanks.