2024-07-06 09:03:13 +01:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2024 Onyx and Iris
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the MIT license. See `wrapper.c` for details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WRAPPER_H__
|
|
|
|
#define __WRAPPER_H__
|
2024-06-25 04:34:28 +01:00
|
|
|
|
2024-06-27 01:17:09 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
#include "voicemeeterRemote.h"
|
|
|
|
|
2024-07-11 18:45:35 +01:00
|
|
|
enum kind : int
|
2024-06-25 16:46:35 +01:00
|
|
|
{
|
2024-07-03 12:58:34 +01:00
|
|
|
UNKNOWN = -1,
|
2024-06-25 16:46:35 +01:00
|
|
|
BASIC = 1,
|
|
|
|
BANANA,
|
|
|
|
POTATO,
|
2024-06-29 03:05:51 +01:00
|
|
|
BASICX64,
|
|
|
|
BANANAX64,
|
|
|
|
POTATOX64,
|
2024-07-02 17:49:51 +01:00
|
|
|
MACROBUTTONS = 11,
|
|
|
|
STREAMERVIEW
|
2024-06-25 16:46:35 +01:00
|
|
|
};
|
|
|
|
|
2024-07-04 09:14:14 +01:00
|
|
|
long login(PT_VMR vmr, int kind);
|
|
|
|
long logout(PT_VMR vmr);
|
|
|
|
long run_voicemeeter(PT_VMR vmr, int kind);
|
|
|
|
long type(PT_VMR vmr, long *type);
|
|
|
|
long version(PT_VMR vmr, long *version);
|
2024-06-25 04:34:28 +01:00
|
|
|
|
2024-07-04 09:14:14 +01:00
|
|
|
bool is_pdirty(PT_VMR vmr);
|
|
|
|
long get_parameter_float(PT_VMR vmr, char *param, float *f);
|
|
|
|
long get_parameter_string(PT_VMR vmr, char *param, unsigned short *s);
|
|
|
|
long set_parameter_float(PT_VMR vmr, char *param, float val);
|
|
|
|
long set_parameter_string(PT_VMR vmr, char *param, char *s);
|
|
|
|
long set_parameters(PT_VMR vmr, char *command);
|
2024-06-25 04:34:28 +01:00
|
|
|
|
2024-07-04 09:14:14 +01:00
|
|
|
bool is_mdirty(PT_VMR vmr);
|
|
|
|
long macrobutton_getstatus(PT_VMR vmr, long n, float *val, long mode);
|
|
|
|
long macrobutton_setstatus(PT_VMR vmr, long n, float val, long mode);
|
2024-06-25 04:34:28 +01:00
|
|
|
|
2024-07-04 09:14:14 +01:00
|
|
|
void clear_dirty(PT_VMR vmr);
|
2024-06-25 04:34:28 +01:00
|
|
|
|
2024-07-06 09:03:13 +01:00
|
|
|
#endif /* __WRAPPER_H__ */
|