Default to PortAudio backend on non-Linux#1257
Default to PortAudio backend on non-Linux#1257klemensn wants to merge 1 commit intoSpotifyd:masterfrom
Conversation
6d8b9bb to
30e6753
Compare
- macOS homebrew[0], NetBSD pkgsrc[1], FreeBSD[2] and OpenBSD[3] ports diable default features and do not reenable "alsa_backend" by default - macOS CI builds do not use it - Windows has no ALSA They all do, however, enable "portaudio_backend" to use PortAudio by default. Reflect that such that the aforementioned four platforms/operating systems do not have to override features whilst making ALSA Linux-only by default. I am not sure what backend is used on Windows by default, but PortAudio aught to work there; certainly better than ALSA. 0: https://github.com/Homebrew/homebrew-core/blob/master/Formula/s/spotifyd.rb 1: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/audio/spotifyd/Makefile?rev=1.2&content-type=text/x-cvsweb-markup 2: https://cgit.freebsd.org/ports/tree/audio/spotifyd/Makefile 3: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/audio/spotifyd/Makefile?rev=1.6&content-type=text/x-cvsweb-markup
30e6753 to
df49002
Compare
|
Thank you for that contribution! Unfortunately, the target specific features don't seem to be working. That's probably a missing cargo feature, however: rust-lang/cargo#1197. Maybe a different solution would be to use |
I see, that doesn't fly.
First and last time I tried, rodio wouldn't build as-is on OpenBSD; I can look into that, but only on my platform and either way, I have no experience with rodio (haven't even heard about it), whereas I know that PortAudio pretty much just works |
|
For reference: rodio uses cpal, so it all boils down to RustAudio/cpal#493 from a few years ago. |
They all do, however, enable "portaudio_backend" to use PortAudio by default.
Reflect that such that the aforementioned four platforms/operating systems do not have to override features whilst making ALSA Linux-only by default.
I am not sure what backend is used on Windows by default, but PortAudio aught to work there; certainly better than ALSA.
0: https://github.com/Homebrew/homebrew-core/blob/master/Formula/s/spotifyd.rb
1: http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/audio/spotifyd/Makefile?rev=1.2&content-type=text/x-cvsweb-markup
2: https://cgit.freebsd.org/ports/tree/audio/spotifyd/Makefile
3: http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/audio/spotifyd/Makefile?rev=1.6&content-type=text/x-cvsweb-markup