Re: Hardware interface (Arduino?) mute button for Voicemeeter channel and mute indicator LED
Posted: Sun Aug 30, 2020 7:42 pm
yes, we recommend to follow the Init sequence given in the SDK example vmr_client.c:
Code: Select all
BOOL InitSoftware(LPT_APP_CONTEXT lpapp, HWND hw)
{
...
...
//get DLL interface
rep=InitializeDLLInterfaces();
if (rep < 0)
{
if (rep == -100) MessageBox(hw,"Voicemeeter is not installed",szTitle,MB_APPLMODAL | MB_OK | MB_ICONERROR);
else MessageBox(hw,"Failed To Link To VoicemeeterRemote.dll",szTitle,MB_APPLMODAL | MB_OK | MB_ICONERROR);
return FALSE;
}
//Log in
rep=iVMR.VBVMR_Login();
if (rep < 0)
{
MessageBox(hw,"Failed To Login",szTitle,MB_APPLMODAL | MB_OK | MB_ICONERROR);
return FALSE;
}
//if you want to run a particular Voicemeeter version
if (rep == 1)
{
iVMR.VBVMR_RunVoicemeeter(3);
Sleep(1000);
}
//call this to get first parameters state (if server already launched)
iVMR.VBVMR_IsParametersDirty();
return TRUE;
}