Check if IOWorkLoop/IOThread is active

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

  1. moonman239 macrumors 68000

    Joined:
    Mar 27, 2009
    #1
    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

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

Share This Page