如何在OS X上检测麦克风的使用情况? [英] How to detect microphone usage on OS X?

查看:1081
本文介绍了如何在OS X上检测麦克风的使用情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以检测Mac的麦克风何时在使用中?与Mikro Snitch相似吗?可以在可可粉里做吗?

Is there a way to detect when the microphone of my Mac is in use? Similar to what Mikro Snitch does? Can this be done in Cocoa?

推荐答案

是否可以检测Mac的麦克风何时在使用?

简单的答案-是的,但这并不容易!

Simple answer - Yes, but it's not going to be easy!

这可以在可可粉中完成吗?

文档说明:-

Cocoa应用程序层主要负责应用程序的外观及其对用户操作的响应

The Cocoa application layer is primarily responsible for the appearance of apps and their responsiveness to user actions

因此,这不会覆盖麦克风,如果覆盖了麦克风,对于您想要的而言,它将太高了.

So this doesn't cover the microphone and if it did, it would be too high level for what you want.

关于如何执行此操作的详细答案非常复杂,对于Stack Overflow来说太宽泛了.但是,要将您引向正确的方向,您需要创建一个 IOKit 内核扩展驱动程序( I/O注册表

A detailed answer on how to do this is complex and too broad for Stack Overflow. However, to set you off in the right direction, you need to create an IOKit kernel extension driver (KEXT) and have a good understanding of the I/O Registry

这篇关于如何在OS X上检测麦克风的使用情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆