Remote API dll dynamic wrapper C#

How to use Voicemeeter Remote API and control Voicemeeter Audio Engine
Post Reply
Atg
Posts: 32
Joined: Sat Oct 19, 2019 11:30 am

Remote API dll dynamic wrapper C#

Post by Atg »

I wrote a wrapper for the remote API dll. Unlike the "DllImport" stuff, it can load 32bit or 64bit version in runtime. Not all functions are implemented yet. Any advices/critique from experienced C# developers? I dont want my code to cause some weird unexpected crashes (which I had when I was using incorrect string type :oops: )
Last edited by Atg on Sun Jan 31, 2021 3:47 pm, edited 1 time in total.
Atg
Posts: 32
Joined: Sat Oct 19, 2019 11:30 am

Re: Remote API dll dynamic wrapper C#

Post by Atg »

Looks like I run into a first problem - VBVMR_RunVoicemeeter dont do anything and always return -1 even if I use "DllImport".
Edit: It works when I load VoicemeeterRemote.dll in x86 process.
Atg
Posts: 32
Joined: Sat Oct 19, 2019 11:30 am

Re: Remote API dll dynamic wrapper C#

Post by Atg »

All API's procedures are implemented now! Even the Audio Callback ones.
Vincent Burel
Site Admin
Posts: 2005
Joined: Sun Jan 17, 2010 12:01 pm

Re: Remote API dll dynamic wrapper C#

Post by Vincent Burel »

good! maybe we could share on our social and webssite resource page . yes?

VBVMR_RunVoicemeeter has been fixed in last version (it was a problem of registry access to get installation folder).
and value 6 allows to run Potato x64
Atg
Posts: 32
Joined: Sat Oct 19, 2019 11:30 am

Re: Remote API dll dynamic wrapper C#

Post by Atg »

Of course, share it.
Post Reply