Trouble with AMX Multiroom DAS-T-0808-SIG
deps
Posts: 27
To control Volume and Bass\Treble levels of each zone, I combine corresponding levels of each panel and virtual device. But when I try to change any level from panel, it begins jumping between two last received points for a long time, like if there is feedback loop. How to do it correctly?
0
Comments
There are two ways to do this, and both require isolating your UI level from the device level. One is to set a flag on the PUSH event for your UI level, and put a WAIT on it so when the flag is active, and received level_event from the device are ignored. The other is to have two UI levels ... one that sets it and sets it only, and the other for feedback and feedback only. The latter is probably the cleanest way to do it, unless someone else can chime in with t=something I haven't considered.
Thank you for idea with PUSH!
I decided to combine levels because it was in standart AMX module, which I downloaded from amx site, so I think that it should work correct.
The only thing I can guarantee is the release will happen last and the only downside to using the release is if someone holds the button too long but you could then add a hold event handler and initiate a do_release to expidite things.
Looking at the example, since he's using a DUET module, changing the virtual to 41001 should fix the problem.
LEVEL_EVENT[VDVMAUDIO, VDV_LEVELS]
{
local_var INTEGER LEV_NUM
local_var integer value
value=LEVEL.VALUE
LEV_NUM=GET_LAST(VDV_LEVELS)
cancel_wait 'mroom2panels'
wait 5 'mroom2panels'
SEND_LEVEL MVP, LEVELS[LEV_NUM], value
}
Please, what exactly helps to avoid tp offline zero level?
I believe he's referring to the level event you receive when a panel goes offline/online. If you're simply catching the level event (no PUSH event flag) then you will inadvertently mute your audio, or whatever your level is for.