From f1e059c5ca9e30a104bf77a184d0f71e69a8ad24 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Wed, 26 Jun 2024 05:05:13 +0100 Subject: [PATCH] rename pdirty() to is_pdirty() --- include/vmr.h | 2 +- src/vmr.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/vmr.h b/include/vmr.h index 95b1f0c..5e841a4 100644 --- a/include/vmr.h +++ b/include/vmr.h @@ -18,7 +18,7 @@ long run_voicemeeter(T_VBVMR_INTERFACE *iVMR, int kind); long type(T_VBVMR_INTERFACE *iVMR, long *type); long version(T_VBVMR_INTERFACE *iVMR, long *version); -bool pdirty(T_VBVMR_INTERFACE *iVMR); +bool is_pdirty(T_VBVMR_INTERFACE *iVMR); long get_parameter_float(T_VBVMR_INTERFACE *iVMR, char *param, float *f); long get_parameter_string(T_VBVMR_INTERFACE *iVMR, char *param, char *s); long set_parameter_float(T_VBVMR_INTERFACE *iVMR, char *param, float val); diff --git a/src/vmr.c b/src/vmr.c index e51fba4..197d7eb 100644 --- a/src/vmr.c +++ b/src/vmr.c @@ -58,7 +58,7 @@ long version(T_VBVMR_INTERFACE *iVMR, long *version) return iVMR->VBVMR_GetVoicemeeterType(version); } -bool pdirty(T_VBVMR_INTERFACE *iVMR) +bool is_pdirty(T_VBVMR_INTERFACE *iVMR) { return iVMR->VBVMR_IsParametersDirty() == 1; } @@ -106,6 +106,6 @@ long macrobutton_setstatus(T_VBVMR_INTERFACE *iVMR, long n, float val, long mode void clear_dirty(T_VBVMR_INTERFACE *iVMR) { Sleep(30); - while (pdirty(iVMR)) + while (is_pdirty(iVMR)) Sleep(1); } \ No newline at end of file