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