6 Commits

Author SHA1 Message Date
9863ca6dca remove EOF check 2024-06-26 20:17:33 +01:00
cd11b26ad8 add -D flag to help() output 2024-06-26 19:31:08 +01:00
71e06ac646 fix script files example 2024-06-26 19:03:21 +01:00
050a4d9e60 add link to api documentation 2024-06-26 18:37:52 +01:00
694a4dbc65 add ./ 2024-06-26 18:34:05 +01:00
3f8ed17176 reword 2024-06-26 18:30:47 +01:00
2 changed files with 10 additions and 6 deletions

View File

@@ -28,22 +28,26 @@ Where:
Examples: Examples:
Launch basic GUI, set debug level to INFO, Toggle Strip 0 Mute, then print its new value Launch basic GUI, set log level to INFO, Toggle Strip 0 Mute, then print its new value
`./vmrcli.exe -kbasic -D2 !strip[0].mute strip[0].mute` `./vmrcli.exe -kbasic -D2 !strip[0].mute strip[0].mute`
Launch banana GUI, set debug level to DEBUG, set Strip 0 label to podmic then print Strip 2 label Launch banana GUI, set log level to DEBUG, set Strip 0 label to podmic then print Strip 2 label
`vmrcli.exe -kbanana -D1 strip[0].label=podmic strip[2].label` `./vmrcli.exe -kbanana -D1 strip[0].label=podmic strip[2].label`
## `Script files` ## `Script files`
Scripts can be loaded from text files, for example: Scripts can be loaded from text files, for example:
```powershell ```powershell
./vbantxt-cli -D1 $(Get-Content .\example_commands.txt) ./vmrcli.exe -D1 $(Get-Content .\example_commands.txt)
``` ```
## `Official Documentation`
- [Voicemeeter Remote C API](https://github.com/onyx-and-iris/Voicemeeter-SDK/blob/main/VoicemeeterRemoteAPI.pdf)
## `Special Thanks` ## `Special Thanks`
- [rxi](https://github.com/rxi) for writing the [log.c](https://github.com/rxi/log.c) package - [rxi](https://github.com/rxi) for writing the [log.c](https://github.com/rxi/log.c) package

View File

@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
void help() void help()
{ {
puts( puts(
"Usage: ./vmrcli.exe [-i] [-k] <api commands>\n" "Usage: ./vmrcli.exe [-i] [-k] [-D] <api commands>\n"
"Where: \n" "Where: \n"
"\ti: Enable interactive mode\n" "\ti: Enable interactive mode\n"
"\tk: The kind of Voicemeeter (basic, banana, potato)\n" "\tk: The kind of Voicemeeter (basic, banana, potato)\n"
@@ -177,7 +177,7 @@ void interactive(T_VBVMR_INTERFACE *vmr)
char command[MAX_LINE]; char command[MAX_LINE];
int i = 0; int i = 0;
while (!isspace(*p) && *p != EOF) while (!isspace(*p))
command[i++] = *p++; command[i++] = *p++;
command[i] = '\0'; command[i] = '\0';
p++; /* shift to next char */ p++; /* shift to next char */