StreamMusic
StreamMusic copied to clipboard
mac 打开音流不播放会阻止电脑休眠
能不能在暂停音乐的时候别强制电脑在线
好的,之后改一下。
目前需要关掉播放页面来关掉屏幕常亮(沿用手机版逻辑)
1.3.2 正式版已发布
macOS更新到15.3之后似乎又有了这个问题.
在暂停播放和关闭窗口后,系统显示因为音频输出被使用而阻止休眠.
希望能在新版中解决.
配图
使用
pmset -g assertions | grep sleep
可以看到以下输出. 其中pid 166(coreaudiod)应该就是音流在使用
pid 94(powerd): [0x00001f6c00018fb3] 00:52:16 PreventUserIdleSystemSleep named: "Powerd - Prevent sleep while display is on"
pid 166(coreaudiod): [0x00002b5a00019259] 00:01:22 PreventUserIdleSystemSleep named: "com.apple.audio.AppleUSBAudioEngine:EDIFIER:EDIFIER M230:EDI00000X04:2.context.preventuseridlesleep"