-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
MP2 support #72688
Comments
Can you compare stripped binary size of release export templates ( |
Okay, so after running the two builds, the difference in size 3584 bytes, rather small I might say. |
For anyone wondering, the following will enable diff --git a/modules/minimp3/audio_stream_mp3.cpp b/modules/minimp3/audio_stream_mp3.cpp
index 6af86a96dc..a64e0870cc 100644
--- a/modules/minimp3/audio_stream_mp3.cpp
+++ b/modules/minimp3/audio_stream_mp3.cpp
@@ -28,7 +28,7 @@
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/**************************************************************************/
-#define MINIMP3_ONLY_MP3
+//#define MINIMP3_ONLY_MP3
#define MINIMP3_FLOAT_OUTPUT
#define MINIMP3_IMPLEMENTATION
#define MINIMP3_NO_STDIO
diff --git a/modules/minimp3/resource_importer_mp3.cpp b/modules/minimp3/resource_importer_mp3.cpp
index 6a04e40c73..2a622fee86 100644
--- a/modules/minimp3/resource_importer_mp3.cpp
+++ b/modules/minimp3/resource_importer_mp3.cpp
@@ -47,6 +47,7 @@ String ResourceImporterMP3::get_visible_name() const {
}
void ResourceImporterMP3::get_recognized_extensions(List<String> *p_extensions) const {
+ p_extensions->push_back("mp2");
p_extensions->push_back("mp3");
} |
If disabling that define also enables MP1 support, we might as well expose it too 🙂 |
Yeah agreed, I just didn't realise it until I pasted the patch here 😛 So, should I create a PR to simply remove the |
Godot version
4.0beta17
System information
Windows 10, any renderer.
Issue description
For several game remakes (including Darkstone: The Evil Reigns) I need MP2 support since much of the original music is using that format.
Now,Godot uses minimp3 for MP3 support, which has MP2 support, but it is currently disabled at build time.
Would you guys be open to a patch to the build system that would allow choosing whether or not to include MP2 support? I can disable it by default, but it would be much nicer that way then having to include another copy of
minimp3
just for adding MP2 support.Steps to reproduce
Add an MP2 file to the project. Notice it doesn't get imported.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: