Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tutorial example appears to be broken on linux #62

Open
lxea opened this issue Jul 29, 2019 · 3 comments
Open

Tutorial example appears to be broken on linux #62

lxea opened this issue Jul 29, 2019 · 3 comments

Comments

@lxea
Copy link

lxea commented Jul 29, 2019

When its run i recieve this error:

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

However the speedy-player example works but only when installed via go get.

I'm on ubuntu 19.04, running Sway, go 1.12

Edit:

I'm even more confused than before, go build app.go && ./app works without any errors, go run app.go does not

@faiface
Copy link
Owner

faiface commented Oct 24, 2019

Hi! Sorry for not responding earlier. Do you still have this problem or have you found a fix?

@math2001
Copy link

math2001 commented Dec 6, 2019

i have the same problem (build works but run doesn't...). Any ideas? I'm happy to try to help out a little bit (since I'm guessing, faiface, you can't replicate)

@williamhaley
Copy link

Same issue for me on a fairly simple/generic ~20 line app

ᐅ go version
go version go1.19.1 linux/amd64

When it tries to play audio I get

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

I use pulseaudio/pipewire on Arch Linux.

Creating a simple ~/.asoundrc as suggested in this old Arch Linux forums post worked for me to get beep to play my .wav file https://bbs.archlinux.org/viewtopic.php?pid=1356438#p1356438

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants