mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-04-20 04:53:48 +01:00
Compare commits
No commits in common. "947abb3c01b82507b94a7e7eef7e7d8c89a8eba7" and "41bf1322ac019f1ec19dbdcaec2263d15ea36b2a" have entirely different histories.
947abb3c01
...
41bf1322ac
@ -59,14 +59,6 @@ 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,12 +9,7 @@ EXE := $(BIN_DIR)/$(program).exe
|
||||
SRC := $(wildcard $(SRC_DIR)/*.c)
|
||||
OBJ := $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||
|
||||
LOG_USE_COLOR ?= yes
|
||||
ifeq ($(LOG_USE_COLOR), yes)
|
||||
CPPFLAGS := -Iinclude -MMD -MP -DLOG_USE_COLOR
|
||||
else
|
||||
CPPFLAGS := -Iinclude -MMD -MP
|
||||
endif
|
||||
CPPFLAGS := -Iinclude -MMD -MP
|
||||
CFLAGS = -O -Wall -W -pedantic -ansi -std=c99
|
||||
LDFLAGS := -Llib
|
||||
LDLIBS := -lm
|
||||
|
@ -194,7 +194,6 @@ void interactive(T_VBVMR_INTERFACE *vmr)
|
||||
continue;
|
||||
}
|
||||
i = 0;
|
||||
log_trace("commands still in buffer: %s", p);
|
||||
|
||||
while (!isspace(*p))
|
||||
command[i++] = *p++;
|
||||
@ -205,8 +204,7 @@ void interactive(T_VBVMR_INTERFACE *vmr)
|
||||
memset(command, '\0', sizeof(command));
|
||||
}
|
||||
|
||||
p = input; /* reset pointer */
|
||||
memset(input, '\0', sizeof(input)); /* reset input buffer */
|
||||
p = input; /* reset pointer */
|
||||
printf(">> ");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user