question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

osu-lazer on linux no audio

See original GitHub issue

When running osu-lazer! while another audio source is playing no sound plays and console outputs:

ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1099:(snd_pcm_dmix_open) unable to open slave

Running latest version

installed with yaourt -S osu-lazer-git

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

10reactions
Nomejicommented, Nov 26, 2020

I think it’s mostly a ArchLinux issue since the pulseaudio-alsa package isn’t installed by default. Installing it fixed the issue for me. Just followed the instructions here: https://wiki.archlinux.org/index.php/PulseAudio#ALSA

It’s still kind of bug. osu shouldn’t be using ALSA directly. ALSA can only have one audio source at time. What osu is trying to do here is to take full control of the selected sound card. If another program is already using this card (pulseaudio) it fail and give this error: ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave. The pulseaudio-alsa package is a workaround that route ALSA audio to Pulse. A real fix should be to add PulseAudio support in osu.

2reactions
Zyfarokcommented, Jul 9, 2019

Ok, after seeing this post : https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913045 I fixed it by creating the ~/.asoundrc file with content :

ctl.dmixer {
type pulse
}
pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}

(and then rebooted) Note: it’s also doable system wide, but I didn’t test that option yet.

Could be useful for anyone else having this issue, but I guess it’s more of an ALSA or archlinux issue (wrong defaults ?) than an osu!lazer issue.

Sorry for the annoyance, but at least I guess this issue can be closed ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

No sound on osu! Linux : r/osugame
No sound on osu! Linux. Downloaded osu yesterday but sound isnt working for some reason. Anyone know how to fix it?
Read more >
Osu! Linux Mint Sounds/Audio Driver Issues - Page 2
For me it solved some annoying problems, even with Creative SB Audigy FX not working normally - only stereo was working under Pulse...
Read more >
Things I wish I'd known before playing osu! on Linux · forum
Audio latency can be defined as the amount of time between you physically tapping a button on your keyboard and hearing the hitsound...
Read more >
User:Katoumegumi - ArchWiki - Arch Linux
Anonymous (Tip for "no audio" fix.) osu!lazer. install osu-lazer-bin AUR. Low latency audio.
Read more >
Low-latency osu! on Linux - ThePooN's Blog
There has always been a recuring issue though: audio latency. ... This is a detailed osu! install guide for Linux users.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found