Check if IOWorkLoop/IOThread is active

Discussion in 'Mac Programming' started by moonman239, May 9, 2015.

  1. moonman239 macrumors 68000

    Mar 27, 2009
    Don't tell the NSA, but I'm trying to find a way to see if my microphone's being used. According to the research I have done, each audio device driver has one IOCommandGate and one IOWorkLoop. I think that calling IOWorkLoop's getWorkThread will give me access to the work loop's work thread.

    My thinking is that if this work thread is running, then a program is using my sound card.
  2. Big Dave macrumors 6502

    Nov 27, 2007
    Crestview, Fl
    You could try pgrep from a terminal to see if a process is running.

Share This Page