PulseAudio:无法连接:LibGDX 中的连接被拒绝
我在尝试设置 LibGDX 时在 IntelliJ 中遇到此错误。我正在运行 PopOS(基于 Ubuntu)。有什么帮助吗?
ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
I got this error in IntelliJ while trying to set up LibGDX. I'm running PopOS (Ubuntu-based). Any help?
ALSA lib ../../pulse/pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': Connection refused
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
检查所有已安装的内容
sudo apt install libpulse-devpulseaudio apulse
检查其启动
systemctl --user restartpulseaudio
如果您使用的是Oracle,请检查您是否有openJDK。
它不是libGDX,它是java到pulseaudio的问题,或者更具体地说是libGDX使用的OpenAL声音以及它如何与linux音频交互。
check everything installed
sudo apt install libpulse-dev pulseaudio apulse
check its started
systemctl --user restart pulseaudio
check you have openJDK if you are using the Oracle one.
Its not libGDX its a java to pulseaudio issue, or more specifically OpenAL sound that libGDX uses and how it interacts with linux audio.
我在 Fedora 上运行时遇到了同样的问题。
显然,该问题可能是由于使用
lwjgl
而不是lwjgl3
引起的(这个问题似乎是一个有用的线程)这篇文章解释了如何切换到
lwjgl3
I had the same problem, running on Fedora.
Apparently the issue might be cause by using
lwjgl
instead oflwjgl3
(this issue seems like a usefull thread)this post explains how to switch to
lwjgl3