burnedpopcorn / Pizza-Tower-1.1.0-Web-Port

Pizza Tower 1.1.0 playable in the Browser
http://pt-emscriptenport.x10.mx/runner.html
14 stars 16 forks source link

possible fix for no audio #19

Closed Frisk4973 closed 2 months ago

Frisk4973 commented 3 months ago

try adding a button that when clicked triggers the start audio and see if that works, because of the usergesture policy preventing the audio from playing

burnedpopcorn commented 3 months ago

no, I'm pretty sure it's an FMOD problem, as FMOD is not supported on GX.GAMES, and locating files in a Web Browser is different from a Windows environment, so even if it can initialize, it probably can't and won't locate the .bank files anyways.

Best solution is probably to extract the .wav files from the .bank files, and manually import them and replace every call to FMOD to a call to the old sound code that is left over

Unfortunately, I am unable to make or develop any new updates at the moment because of a certain relative's anger issues, so I currently have no means of updating this project further, although I do plan on continuing work on it as soon as I get my means of modifying and compiling the code back