Enable/Disable a Ducking Function

How to use Voicemeeter Remote API and control Voicemeeter Audio Engine
Post Reply
jallen
Posts: 6
Joined: Tue Dec 15, 2015 2:37 pm

Enable/Disable a Ducking Function

Post by jallen »

I have a ducking function I would like to be able to enable/disable by pushing a button, is this possible?

Ducking button 2 position
- When button is pushed, VAIO auto mutes when input 4 has level > -40.
- When button is not pushed, VAIO does not auto mute.

I have the mute on input working but it mutes anytime input on 4 > -40, I want to be able to disable this at the push of a button.
Vincent Burel
Site Admin
Posts: 2005
Joined: Sun Jan 17, 2010 12:01 pm

Re: Enable/Disable a Ducking Function

Post by Vincent Burel »

you can use these instruction to act on MacroButtons (directly in MacroButton)

Code: Select all

Command.Button[i].State = 0 or 1;	//Change Macro Button State
Command.Button[i].StateOnly= 0 or 1;	//Change Button State only
Command.Button[i].Trigger= 0 or 1;	//Change Trigger Enable State
or through VBAN network if you want to change it on another PC:

Code: Select all

SendText("vban1",  Command.Button(2).Trigger =1;);

Otherwise directly by API functions:

MacroButtons function:
Coming with version 3.0.1.4 / 2.0.5.4 / 1.0.7.4 it’s now possible to remote some basic MacroButtons functions to PUSH or RELEASE a given button, change the displayed state or the trigger enable status. This is given by basically 2x functions:

Code: Select all

long __stdcall VBVMR_MacroButton_GetStatus(long nuLogicalButton, float * pValue, long bitmode);

long __stdcall VBVMR_MacroButton_SetStatus(long nuLogicalButton, float fValue, long bitmode);
And the synchronization function to know if there has been a change in MacroButtons. See next page to get more information.

Code: Select all

long __stdcall VBVMR_MacroButton_IsDirty(void);
jallen
Posts: 6
Joined: Tue Dec 15, 2015 2:37 pm

Re: Enable/Disable a Ducking Function

Post by jallen »

Works Perfect! If I would have updated Potato, maybe I would have been reading the newer manual......

Thank you
Post Reply