// mute the output devices in a session
// #needsSession

if (event.session == null)
	return;

event.session.blocks.forEach(block =>
{
	if (block.name == "Output Device")
		block.disabled = true;
});