Hey there,

I'd like to write the following in LUA:

I have two output profiles: The default one is my headset and a second one called "speaker" that uses my speakers. Now I'd like the script to switch profiles based on the microphone mute status. When muted, I'd like to hear teamspeak on my speakers, when unmuted over my headset.

Now I've looked through ts3events.lua and ts3defs.lua:

I guess I can use onClientSelfVariableUpdateEvent() to catch changes of the client mute state. But I have no clue how (or even if) I can use lua to switch output (and/or input) profiles.

Any ideas?