连接到 ALSA

发布于 2024-09-30 22:10:38 字数 304 浏览 1 评论 0原文

当我尝试以我们一台计算机上的另一个用户身份连接到 ALSA 声音系统时,我收到以下消息 - “ALSA lib pcm_dmix.c:975:(snd_pcm_dmix_open) 无法创建 IPC 信号量”。该机器已作为我们系统中的另一个用户登录。无论我使用 aplay 还是我的应用程序,我都会收到相同的消息。如果我以 root 身份运行,应用程序将连接到 ALSA 系统并播放声音。如果我 su 到登录控制台的用户,我会遇到同样的失败。

有人有什么想法吗?我尝试在我的程序上使用 setcap,但由于“不支持操作”而失败。这可能是因为我的应用程序位于 NFS 安装分区上。

When I try to connect to the ALSA sound system as another user on one of our machines I get the following message- "ALSA lib pcm_dmix.c:975:(snd_pcm_dmix_open) unable to create IPC semaphore". The machine has been logged in as another user in our system. It doesn't matter if I use aplay or my application I get the same message. If I run as root the application connects to the ALSA system and plays the sound. If I su to the user who is logged into the console I get the same failure.

Does anyone have any ideas? I have tried to use setcap on my program but this failed due to "Operation not supported". This maybe because my application is on a NFS mounted partition.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

老娘不死你永远是小三 2024-10-07 22:10:38

尝试在 .asoundrc 文件中设置 ipc_key_add_uid。有关详细信息,请参阅有关 pcm 插件的 ALSA 文档

Try setting ipc_key_add_uid in your .asoundrc file. see ALSA documentation on pcm plugins for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文