Added threading on microphone capture and oscillator