-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for the MP3 audio codec #85
Comments
See also godotengine/godot#27236. There's a third-party module you can compile with Godot to get MP3 support: https://github.com/DeleteSystem32/godot-minimp3
All MP3 patents expired in April 2017, so it should be fine to use now. Since patents related to AAC decoders haven't expired yet, we can't implement AAC in Godot's core. However, nothing prevents someone from providing a third-party module for it. |
@DeleteSystem32 We've discussed this with @reduz and @Calinou and we think that it would be good to have built-in MP3 decoding support, and minimp3 seems to be a good option. I tested your module on the current The README says that it's experimental, what's the current state? Would you be interested in contributing this module directly upstream to https://github.com/godotengine/godot? It should be for the
|
Hello!
I've been using it on a project without issues for quite a bit, and it's been stable. Essentially, I just haven't updated the readme to reflect this.
Absolutely! I will take a look at fixing seeking as well as the changes for Godot 4.0. |
Fixed by godotengine/godot#43007. |
Describe the project you are working on:
A rhythm game (think Guitar Hero / Dance Dance Revolution / Audiosurf). There will be a feature where players will be able to play the game over their own songs.
Describe how this feature / enhancement will help your project:
As a developer, I have no issues sticking to OGG as preferred music format. It simplifies the task for licensing reasons and performance.
But, I would like users of my game to be able to easily import their own songs. And this is a different story. Asking them to convert their MP3 to OGG files can be a barrier. The in-game editor should be as easy as using an "open" command and locating the music file on the filesystem. It should work with whichever popular music formats (MP3, AAC...) are likely to be found.
Show a mock up screenshots/video or a flow diagram explaining how your proposal will work:
Describe implementation detail for your proposal (in code), if possible:
I am aware of the licensing issues that MP3 support brings around.
Offering audio codec modules in the form of standalone extensions could be a solution. The system could be extended to video codecs as well. Game that do not require licensed audio formats support may not need the extensions.
If this enhancement will not be used often, can it be worked around with a few lines of script?:
No. There is no additional audio codec support available at the moment.
Is there a reason why this should be core and not an add-on in the asset library?:
Competition (example : Unity) already support more formats out-of-the-box AFAIK. We also would need to have the API ready to support such extensions.
The text was updated successfully, but these errors were encountered: