beep icon indicating copy to clipboard operation
beep copied to clipboard

Tutorial example appears to be broken on linux

Open lxea opened this issue 4 years ago • 3 comments

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

lxea avatar Jul 29 '19 11:07 lxea

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

faiface avatar Oct 24 '19 17:10 faiface

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)

math2001 avatar Dec 06 '19 06:12 math2001

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

williamhaley avatar Sep 21 '22 14:09 williamhaley