Search code examples
macoscore-audio

Is there a way to listen system output volume mute event on Mac?


Just like the title, I want to know how to listen the system output volume changed event. enter image description here


Solution

  • Use AudioObjectAddPropertyListener to add a kAudioDevicePropertyMute property listener exactly solved this problem.