Author Topic: C# wrapper for libopenmpt?  (Read 787 times)

Offline LovelyA72

  • Active artist
  • *
  • Posts: 19
  • Operating System: Windows7 64, OS X Wine 1.8(rc4)
C# wrapper for libopenmpt?
« on: April 07, 2019, 09:19:34 »
I am working on a project that needs to use a module synthesiser. I tried SharpMod(based on MikMod) and it sounds stupid. There's a library called libmodplugsharp available but it's poorly documented and does not have the feature that I need. So is there any C# wrapper for libopenmpt abaliable? thanks
你好!我是一位来自中国深圳的电子音乐爱好者!
Hi! I am a module music lover from Shenzhen China.

Offline manx

  • OpenMPT Developers
  • *****
  • Posts: 220
Re: C# wrapper for libopenmpt?
« Reply #1 on: April 07, 2019, 09:29:27 »
I'm not aware of any C# language bindings for libopenmpt.

I'm no C# user myself, but from what I understand, using either the native libopenmpt C API directly via pinvoke, or implementing a thin wrapper on top of that should not be too hard (which is basically with libmodplugsharp does for the libmodplug C API).

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,677
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: C# wrapper for libopenmpt?
« Reply #2 on: April 07, 2019, 10:13:52 »
Several people have promised in the past to write one but then I never heard back about their progress. So if you decide to write your own, please consider sharing it with the community.
» 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.

Offline LovelyA72

  • Active artist
  • *
  • Posts: 19
  • Operating System: Windows7 64, OS X Wine 1.8(rc4)
Re: C# wrapper for libopenmpt?
« Reply #3 on: April 10, 2019, 12:46:43 »
Well... I found a pure C# library called MikSharp. It has all of these disadvantages that MikMod has but at least it's 100% C#.
你好!我是一位来自中国深圳的电子音乐爱好者!
Hi! I am a module music lover from Shenzhen China.

Offline Saga Musix

  • OpenMPT Developers
  • *****
  • Posts: 6,677
  • aka Jojo
    • Download music, samples, VST plugins: Saga Musix Website
  • Operating System: Windows 10 x64
Re: C# wrapper for libopenmpt?
« Reply #4 on: April 10, 2019, 14:47:36 »
If you want a readily wrapped mod playback library that is actually good at playing modules I'd rather recommend looking into BASS.Net.
» 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.

Offline LovelyA72

  • Active artist
  • *
  • Posts: 19
  • Operating System: Windows7 64, OS X Wine 1.8(rc4)
Re: C# wrapper for libopenmpt?
« Reply #5 on: April 11, 2019, 01:29:43 »
Bass library sounds really nice. I will try ManagedBass(an open-source Bass.NET alternative), hopefully, gets a good result.
« Last Edit: April 11, 2019, 02:08:56 by LovelyA72 »
你好!我是一位来自中国深圳的电子音乐爱好者!
Hi! I am a module music lover from Shenzhen China.