how to write mute logic when mute state is unknown

Posted by Delan Azabani on Stack Overflow See other posts from Stack Overflow or by Delan Azabani
Published on 2010-12-27T12:43:19Z Indexed on 2010/12/27 12:54 UTC
Read the original article Hit count: 336

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about c

    Related posts about mute