Hi Saga Musix,
You may remember that I ever told you that I want to use OpenMPT for my game project. And I am really happy when I know OpenMPT will available as Javascript library, which mean it can potentially become cross platform solution for Module playback without recompiling the library, because HTML5 is supported everywhere. Just pick suitable rendering engine like NW.js for desktop, Cordova for Android, and Chrome/Firefox for Web, then I basically can make game once and run everywhere.
The problem is, although I can search many Javascript programmer on internet to make me RPG Maker MV plugin, but only few of them who know or interested about how module music works, and fewer than that who know about how to use libopenmpt.js for web audio playback support, and even fewer than that who know about how to integrate it as RPG Maker MV plugin. Fortunately there are chiptune2.js, therefore I don't have to introduce my programmer from beginning about module music. Just point him to chiptune2.js GitHub repository and its web example, then ask him to integrate it in RPG Maker MV.
It works!
I have planned to share my commissioned code to public, so every indie gamer like me can get benefit from it. I can proudly said that it is based on libopenmpt that make my plugin works. And of course OpenMPT wiki can be updated to tell that it is used in gaming world just like it is used in XMPlay, Foobar, etc. But in fact I am too shy to share it to public because it doesn't performed as intended. There are too much latency in audio playback, so I am not continuing the project although I understand that the latency may not caused by libopempt, maybe the plugin is what caused the latency. I am almost desperate to continue my project until I know
AudioStreaming.js that incorporating stbvorbis compiled with emscripten to support iOS or web browser who may don't have native support for OGG. Then I wonder how emscripten based js can perform so well in supporting ogg playback for web. Now OpenMPT has evolved. It can be compiled into web assembly, which mean there are potential upgrade to make it run better on web. Unfortunately, chiptune2.js is not updated to support this new feature, which mean I cannot just download and overwrite the old chiptune.js and libopempt.js to make my plugin magically support web assembly as well.
I am attached my code and project in case you want to look at it (I don't want to bother you, just leave it if you don't interested). It can be opened in RPG Maker MV or you may playtest it using browser or nw.js.
https://drive.google.com/file/d/1iUUUtOqpIQD0O5_pHdRkVG5wI7yV4cLX/view?usp=sharingAnd then for your questions
what exactly is it that you want to achieve?
I want to integrate OpenMPT into RPG Maker MV game engine so the engine can support module music.
Do you need code that demonstrates you how to use libopenmpt.js?
Yes, so I can point to my programmer about what I want to achive or they can study it to make plugin.
Do you need a portable libopenmpt-based module player?
Yes. I need them to test how well libopenmpt.js perform in web should be.
Thank you for reading this post.