Why there are 2 extension for audio files?

By default a new RPG Maker MV project has all its audio files twice, a m4a/mp4 and a ogg file, this makes the project folder too heavy.

Why is this?
is it recommended to do the same with my custom audio files?
Both formats are provided, but when you deploy, it will bundle the format appropriate for your target platform. PC has one, mobile has the other (don't remember which was which - I think mp4 is desktop). If you are only going to deploy for desktop, you only need to include that format.

The help file will explain this better probably.
as Shaz explained this is because of the different environments for deployment.

on mobile, all devices have hardware-encoding paid for by the device manufacturer, and the engine uses that as to not have to pay additional licence fees because they are already paid for by the device.

on desktops, software encoding is possible and they use one of the free decoders to prevent additional licence fees.

You have to know that things like MP3 encoding are only free for private playback, any company using them has to pay licence fees. And things are done this way so that no one using the RM commercially has to concern himself with those fees, which would otherwise be applicable.
Checked the documentation again, here's a screenshot of the section pertaining to audio files:

1644981323949.png


Basically, if you aren't planning to make a browser/mobile games, you don't have to include .m4a files.
Oh! I see, thank you so much 😂

Original thread: https://forums.rpgmakerweb.com/threads/why-there-are-2-extension-for-audio-files.144969/