Hey there,
One annoyance I've found building this on a couple of my boxes is the automatic pulseaudio or ALSA output support.
Is there a way you can make it include both pulseaudio and ALSA support?
The reason is that I have a box that doesn't run the pulseaudio daemon (uses ALSA), but has libpulse installed because of package dependencies (Arch Linux), so when I build sidplayfp it detects libpulse, then will only output if pulseaudio is running.
Any chance of, say, "build in support for both, but use ALSA if pulseaudio fails"?
As it is now, I can't create a generic package for Arch that will use either.
Cheers, still love the sound.
Sorry, my last sentence should have been:
"As it is now, I can't create a generic package for Arch that will both if libpulse is detected."
*use both
Dammit (been drinkin')... :)
By the way, I've decided to make two packages (I'm the package maintainer of these in the Arch AUR).
sidplay-residfp-alsa
sidplay-residfp-pulse
This should remedy the issue, so up to you whether you think it's worth the work of what I asked for originally.
Cheers!
I tweaked the autotool bits to support simultaneous multiple APIs but ATM I am too lazy to touch the code.
Leave it here for the future.
Support for multiple API at runtime with a fallback mechanism is ready in trunk,
scheduled for 1.1
Available in 1.1.0beta, if someone wants to test before the official release.
Builds fine.
On my work system (running gnome-shell, therefore Pulse) if I kill off the pulse daemon, it won't play via ALSA.
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused
/dev/dsp: No such file or directory
sidplayfp: ERROR: Could locate an audio device.
That's an OSS error, it seems that the ALSA backend is being skipped. Can you please attach the config.log?
I've just tested on two extra boxes (the error earlier was from my work laptop).
First box is ALSA only, only libpulse is installed by dependencies, no pulseaudio daemon. Playing fine.
Other system is another laptop, normal gnome-shell with pulseaudio. Also plays fine.
I'm thinking the failed test earlier today was due to me killing the pulseaudio daemon, then expecting it not to be detected (total guess). It is strange the /dev/dsp was tried (I guess, as well).
No OSS modules loaded on any of the three test systems.
So I don't know, given the other environments, seems ok. I can post the build log from the other laptop tomorrow if you think it's still worth it.
Yes, it wuold be interesting to check if and why ALSA has not been detected.
Attached config.log
Found a bug in the configure script that prevented the Pulse backend to be built, but ALSA is being correctly detected, so the Pulse error looks even more strange. Maybe ALSA on your machine is configured to run through the pulseaudio server?
Anyway there are some fixes and error reporting cleanups in svn if you want to give a try. I can also make a new beta tarball if you prefer.
Available in 1.1, thanks for the feedback. If there are still issues please open new ticket.