alsa
alsa copied to clipboard
golang alsa client implementation
Tested on my raspberry pi 4B+ under 64-bit Ubuntu. Closes #19
``` root@ubuntu:~# go get -u -x -v github.com/yobert/alsa/cmd/beep cd /root/go/src/github.com/yobert/alsa git config remote.origin.url github.com/yobert/alsa (download) cd /root/go/src/github.com/yobert/alsa git pull --ff-only cd /root/go/src/github.com/yobert/alsa git submodule update --init --recursive cd /root/go/src/github.com/yobert/alsa git...
https://github.com/yobert/alsa/blob/d079056f5370c525161fa2ec4b72d0dfd5ef48b8/device.go#L256 Hi, sometimes write method write less number of frames, here is how i fixed this: ```go func (device *Device) write1(buf []byte, frames int) (int, error) { x := pcm.XferI{...
added const for beep time Please note, i edit this file on github, so please check that its compile. Regards
Docs doesn't describe properly where i need dig to solve this issue. i run `go run ./cmd/beep` and nothing happens. Also, cards are not switching in for cycle as expected.
### The issue In https://github.com/yobert/alsa/blob/master/device.go#L107, the `os.OpenFile` call does not have a `syscall.O_NONBLOCK` flag. I suspect this is causing the `beep` example on my pure ALSA setup to block. (I've...
I'm working on a personal project that will run on a RISC-V SBC And I noticed there are 3 files with arch suffixes, however the only difference between the 3...
Hello, From what I've tested, it seems that this implementation offers no way to access the configured alsa plugins. For example, I would like to use the very common plughw...