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

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. 

Original thread: https://forums.rpgmakerweb.com/threads/how-to-force-m4a-audio-to-prevent-no-ogg-file-found-on-internet-browsers.46894/