swap blocks.

This commit is contained in:
onyx-and-iris 2024-07-09 15:11:48 +01:00
parent ad91a7f4e6
commit af98dead75
2 changed files with 8 additions and 8 deletions

View File

@ -144,7 +144,7 @@ int main(int argc, char *argv[])
PT_VMR vmr = create_interface();
int rep = login(vmr, kind);
long rep = login(vmr, kind);
if (rep != 0)
{
log_fatal("Error logging into the Voicemeeter API");
@ -185,15 +185,15 @@ int main(int argc, char *argv[])
}
rep = logout(vmr);
if (rep == 0)
{
return EXIT_SUCCESS;
}
else
if (rep != 0)
{
log_fatal("Error logging out of the Voicemeeter API");
return EXIT_FAILURE;
}
else
{
return EXIT_SUCCESS;
}
}
/**

View File

@ -30,7 +30,7 @@
*/
long login(PT_VMR vmr, int kind)
{
int rep;
long rep;
long v;
log_trace("VBVMR_Login()");
@ -75,7 +75,7 @@ long login(PT_VMR vmr, int kind)
*/
long logout(PT_VMR vmr)
{
int rep;
long rep;
Sleep(20); /* give time for last command */
log_trace("VBVMR_Logout()");