Skip to content

Commit

Permalink
expose more internals
Browse files Browse the repository at this point in the history
  • Loading branch information
GottZ committed Apr 16, 2024
1 parent 01fbd68 commit dc2f5cf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const voicemeeter = {
MacroButtonState,
MacroButtonTrigger,
MacroButtonColor,
_libvoicemeeter: null,

// reflecting the dll initialization state
isInitialised: false,
Expand All @@ -46,7 +47,11 @@ const voicemeeter = {
async init() {
const dll = koffi.load(await getDLLPath());

libvoicemeeter = {
this._libvoicemeeter = libvoicemeeter = {
// expose dll and koffi in case the user want to use it directly
_dll: dll,
_koffi: koffi,

// Login
VBVMR_Login: dll.func("long __stdcall VBVMR_Login(void)"),
VBVMR_Logout: dll.func("long __stdcall VBVMR_Logout(void)"),
Expand Down

0 comments on commit dc2f5cf

Please sign in to comment.