mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2024-11-15 17:40:56 +00:00
swap blocks.
This commit is contained in:
parent
ad91a7f4e6
commit
af98dead75
12
src/vmrcli.c
12
src/vmrcli.c
@ -144,7 +144,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
PT_VMR vmr = create_interface();
|
PT_VMR vmr = create_interface();
|
||||||
|
|
||||||
int rep = login(vmr, kind);
|
long rep = login(vmr, kind);
|
||||||
if (rep != 0)
|
if (rep != 0)
|
||||||
{
|
{
|
||||||
log_fatal("Error logging into the Voicemeeter API");
|
log_fatal("Error logging into the Voicemeeter API");
|
||||||
@ -185,15 +185,15 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
rep = logout(vmr);
|
rep = logout(vmr);
|
||||||
if (rep == 0)
|
if (rep != 0)
|
||||||
{
|
|
||||||
return EXIT_SUCCESS;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
log_fatal("Error logging out of the Voicemeeter API");
|
log_fatal("Error logging out of the Voicemeeter API");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return EXIT_SUCCESS;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
*/
|
*/
|
||||||
long login(PT_VMR vmr, int kind)
|
long login(PT_VMR vmr, int kind)
|
||||||
{
|
{
|
||||||
int rep;
|
long rep;
|
||||||
long v;
|
long v;
|
||||||
|
|
||||||
log_trace("VBVMR_Login()");
|
log_trace("VBVMR_Login()");
|
||||||
@ -75,7 +75,7 @@ long login(PT_VMR vmr, int kind)
|
|||||||
*/
|
*/
|
||||||
long logout(PT_VMR vmr)
|
long logout(PT_VMR vmr)
|
||||||
{
|
{
|
||||||
int rep;
|
long rep;
|
||||||
|
|
||||||
Sleep(20); /* give time for last command */
|
Sleep(20); /* give time for last command */
|
||||||
log_trace("VBVMR_Logout()");
|
log_trace("VBVMR_Logout()");
|
||||||
|
Loading…
Reference in New Issue
Block a user