Page 1 of 1

Remote API dll dynamic wrapper C#

Posted: Thu Jan 28, 2021 10:42 pm
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: )

Re: Remote API dll dynamic wrapper C#

Posted: Fri Jan 29, 2021 7:45 pm
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.

Re: Remote API dll dynamic wrapper C#

Posted: Tue Mar 23, 2021 1:01 am
by Atg
All API's procedures are implemented now! Even the Audio Callback ones.

Re: Remote API dll dynamic wrapper C#

Posted: Tue Mar 23, 2021 8:05 am
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

Re: Remote API dll dynamic wrapper C#

Posted: Tue Mar 23, 2021 11:47 am
by Atg
Of course, share it.