how to write mute logic when mute state is unknown
- by Delan Azabani
I'm writing an indicator-sound clone for OSS4. Setting the volume works fine now, but I'm having trouble with the muting aspect of my program.
A couple of facts about muting in OSS4:
vmix doesn't have a mute (and we use vmix for volume control)
also, the 'media keys' way of controlling volume doesn't set a mute control, but rather, volume = 0
The problem with this is, when reading the vmix volume and encountering zero, we don't know if the user has actually set it to zero, or has it set to some other value, but has mute on.
How should I write my muting logic?
git code, if that helps