[How-To] Force M4A Audio To Prevent No .OGG File Found On Internet Browsers

Paul_Reitz

Veteran
Veteran
Joined
Oct 25, 2015
Messages
41
Reaction score
9
First Language
English
Primarily Uses
Hello all,

When messing around with the potential to upload and playback on several devices I was testing my WIIU/PS4/Chrome/Firefox/IE and noticed that for Chrome and Firefox I was getting errors regarding not having the .ogg files for audio. However my Internet Explorer was able to function correctly. In the files that were uploaded the audio is M4A. I wanted Chrome and Firefox to use that audio type to prevent me from formatting all the audio to that format and to double up on storage space. So I did the following

1) I opened rpg_core.js located @ (C:\Users\YourName\Documents\Output_Folder\Game_Name\www\js) *where you stored your export for the game

2) Went to line 6557  (imgur url link: http://imgur.com/ZCqdtqg)

3) I commented out the return !!this._canPlayOgg; by putting a double // so it looks like the following //return !!this._canPlayOgg;

4) then I added below that commented line return false;

This should force all browsers to use the M4A file type from my understanding. Also this is my first post so hello community. 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,038
Members
137,568
Latest member
invidious
Top