什么是“ coreaudiod”,为什么它在我的Mac上运行?

So you saw something called “coreaudiod” while browsing Activity Monitor. What does that do, and could it be causing problems?

因此,您在浏览Activity Monitor时看到了称为“ coreaudiod”的内容。 这是怎么做的,是否会引起问题?

This article is part of our ongoing series explaining various processes found in Activity Monitor, like kernel_task, hidd, mdsworker, installd, WindowServer, blued, launchd, dbfseventsd, and many others. Don’t know what those services are? Better start reading!

这篇文章是一部分我们正在进行一系列解释各种进程在活动监视器中发现,像kernel_taskhiddmdsworkerINSTALLDWindowServer发蓝launchd会dbfseventsd ,和其他许多人 。 不知道这些服务是什么? 最好开始阅读!

This particular process, coreaudiod, is the daemon that powers Core Audio, the low-level API for sound on macOS. A daemon is a process that runs in the background of your Mac; you can identify them by the “d” at the end of their names.

这个特定的过程coreaudiod是为Core Audio供电的守护进程, Core Audio是macOS上声音的低级API。 守护程序是在Mac后台运行的进程。 您可以在名称末尾用“ d”标识它们。

But what is Core Audio? Well, according to Apple’s Developer portal, it handles basically everything about sound on your Mac.

但是什么是核心音频? 好吧,根据Apple的Developer Portal所说 ,它基本上可以处理Mac上有关声音的所有问题。

On the Mac, Core Audio encompasses recording, editing, playback, compression and decompression, MIDI, signal processing, file stream parsing, and audio synthesis.

在Mac上,Core Audio包括记录,编辑,播放,压缩和解压缩,MIDI,信号处理,文件流解析和音频合成。

Basically, if sound comes out of your speaker, or is recorded with a microphone, coreaudiod had a part in it. For this reason coreaudiod will take up a little bit of CPU power any time you hear audio through your speakers, or record something using your microphone.

基本上,如果声音从扬声器发出或用麦克风录制,则coreaudiod会参与其中。 因此,每次通过扬声器听到音频或使用麦克风录制内容时,coreaudiod都会占用一点CPU资源。

If your sound ever stops working—and you’re completely certain you didn’t do something like mute all audio or change your audio output device—restarting coreaudiod in Activity Monitor should solve the problem in cases where you’d otherwise have to restart your computer.

如果您的声音停止工作了,并且您完全确定没有执行使所有音频静音或更改音频输出设备的操作,那么在Activity Monitor中重新启动coreaudiod应该可以解决该问题,否则您将不得不重新启动电脑。

coreaudiod应该使用网络吗? (Should coreaudiod Be Using the Network?)

If you use a Mac firewall like Little Snitch, you may occasionally notice coreaudiod trying to access devices on the local network. What’s going on?

如果您使用像Little Snitch这样的Mac防火墙 ,您可能偶尔会注意到coreaudiod试图访问本地网络上的设备。 这是怎么回事?

Well, coreaudiod powers the audio portion of AirPlay, which lets you mirror your display and audio to AppleTV and a few other supported audio receivers. Occasionally coreaudiod will scan your local network to see if there are any supported devices, meaning its normal to sometimes see this daemon attempt to connect to local devices.

好吧,coreaudiod为AirPlay的音频部分提供了动力,它使您可以将显示器和音频镜像到AppleTV和其他一些受支持的音频接收器。 有时coreaudiod会扫描您的本地网络以查看是否有任何受支持的设备,这意味着有时看到此守护程序尝试连接到本地设备是正常的。

如果coreaudiod正在使用您的CPU电源 (If coreaudiod Is Using Your CPU Power)

Users have reported that, in some cases, the folder /Library/Preferences/Audio will go missing, causing coreaudiod to massively spike its CPU usage even when no audio is playing. If you notice this CPU spike head to /Library/Preferences/ in Finder and verify that the Audio folder is missing.

用户报告说,在某些情况下,文件夹/ Library / Preferences / Audio会丢失,甚至在没有音频播放的情况下,也导致coreaudiod大量提高其CPU使用率。 如果您注意到此CPU峰值指向Finder中的/ Library / Preferences /,并验证“音频”文件夹是否丢失。

According to blogger LucaTNT, you can recreate the folder yourself to solve the problem by opening the Terminal and running these two commands:

根据博客LucaTNT的说法 ,您可以打开终端并运行以下两个命令来自己重新创建文件夹以解决问题:

sudo mkdir /Library/Preferences/Audio
sudo chown -R _coreaudiod:admin /Library/Preferences/Audio

The first command creates the directory you need to replace; the second sets the correct permissions for the folder.

第一个命令创建您需要替换的目录; 第二个设置文件夹的正确权限。

Photo Credit: Steinar Engeland

图片来源: Steinar Engeland

翻译自: https://www.howtogeek.com/321905/what-is-coreaudiod-and-why-is-it-running-on-my-mac/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值