Author Topic: libopenmpt install on Unity project  (Read 237 times)

Offline MagnumAlpasan

  • Shy artist
  • Posts: 1
libopenmpt install on Unity project
« on: August 21, 2022, 09:36:32 »
Hello everyone, I'm new to the forums. Can you tell me how to install libopenmpt on my unity project as they did on modarchive.org's online player? I intended to include the .it module file in my game project like the games that use the Tracker Module, such as Hoggy 2. I'm new to the software and tried to find any install-like plugins on YouTube or Google. Thanks

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 7,530
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: libopenmpt install on Unity project
« Reply #1 on: August 21, 2022, 10:53:54 »
There is nothing in common between Unity and the modarchive.org online player. ModArchive uses a customized version of chiptune2.js, which is a JavaScript library for embedding libopenmpt on websites. From my understanding, you would need a C# wrapper for libopenmpt to use in Unity. A similar question was asked recently how to integrate libxmp into a Unity project, and while there are no specific instructions on how to do so, there are a few pointers in that thread that might be helpful: https://github.com/libxmp/libxmp/issues/587
From what I know, Unity may already support playing modules using the FMOD library, which is not as accurate as libopenmpt, but it might be a good start that is less work than integrating a complete third-party library for module playback.
ยป No support, bug reports, feature requests via private messages - they will not be answered. Use the forums and the issue tracker so that everyone can benefit from your post.