mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-04-19 20:43:49 +01:00
Compare commits
4 Commits
41bf1322ac
...
947abb3c01
Author | SHA1 | Date | |
---|---|---|---|
947abb3c01 | |||
e06a26f87b | |||
25bf542b46 | |||
50271edd8f |
@ -59,6 +59,14 @@ Scripts can be loaded from text files, for example in Powershell:
|
||||
./vmrcli.exe -D1 $(Get-Content .\example_commands.txt)
|
||||
```
|
||||
|
||||
## `Build`
|
||||
|
||||
Run the included `makefile` to build with [GNU Make](https://www.gnu.org/software/make/).
|
||||
|
||||
By default the log.c module is built with coloured logging enabled. To disable this you can override the `LOG_USE_COLOR` variable, for example:
|
||||
|
||||
`make LOG_USE_COLOR=no`
|
||||
|
||||
## `Official Documentation`
|
||||
|
||||
- [Voicemeeter Remote C API](https://github.com/onyx-and-iris/Voicemeeter-SDK/blob/main/VoicemeeterRemoteAPI.pdf)
|
||||
|
7
makefile
7
makefile
@ -9,7 +9,12 @@ EXE := $(BIN_DIR)/$(program).exe
|
||||
SRC := $(wildcard $(SRC_DIR)/*.c)
|
||||
OBJ := $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||
|
||||
CPPFLAGS := -Iinclude -MMD -MP
|
||||
LOG_USE_COLOR ?= yes
|
||||
ifeq ($(LOG_USE_COLOR), yes)
|
||||
CPPFLAGS := -Iinclude -MMD -MP -DLOG_USE_COLOR
|
||||
else
|
||||
CPPFLAGS := -Iinclude -MMD -MP
|
||||
endif
|
||||
CFLAGS = -O -Wall -W -pedantic -ansi -std=c99
|
||||
LDFLAGS := -Llib
|
||||
LDLIBS := -lm
|
||||
|
@ -194,6 +194,7 @@ void interactive(T_VBVMR_INTERFACE *vmr)
|
||||
continue;
|
||||
}
|
||||
i = 0;
|
||||
log_trace("commands still in buffer: %s", p);
|
||||
|
||||
while (!isspace(*p))
|
||||
command[i++] = *p++;
|
||||
@ -204,7 +205,8 @@ void interactive(T_VBVMR_INTERFACE *vmr)
|
||||
memset(command, '\0', sizeof(command));
|
||||
}
|
||||
|
||||
p = input; /* reset pointer */
|
||||
p = input; /* reset pointer */
|
||||
memset(input, '\0', sizeof(input)); /* reset input buffer */
|
||||
printf(">> ");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user