-
Notifications
You must be signed in to change notification settings - Fork 456
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
self-compiled snapclient on OpenSuSE 64-Bit doesn't work #727
Comments
Seems that the device "Default ALSA Output (currently PulseAudio Sound Server)" cannot properly report the current buffer size and latency. |
I'm wondering that I can play audio files locally with pulseaudio and I can stream files via pulseaudio over the network. As you said it's probably an interface problem locally between snapclient and pulseaudio, since snapclient works directly with alsa. And since all my Raspi-snapclients run fine, I think it might be a 64-Bit-(build?)-problem, e.g. if int or long-int or short-int variables are inconsistently used as parameters? I couldn't get snapclient running with one of the other devices, sorry I'm not an audio expert: some of the devices with snapclient -l: 6: upmix 7: default 8: sysdefault:CARD=PCH 9: front:CARD=PCH,DEV=0 10: surround21:CARD=PCH,DEV=0 11: surround40:CARD=PCH,DEV=0 12: surround41:CARD=PCH,DEV=0 pulseaudio #7 gives stuttering sound, Since I've not very much experience with git: can you give me a hint how to clone your develop branch ? |
Seems that all your devices are looped through PulseAudio. |
duplicate of #722 |
thanks for your quick responses. Is it really a duplicate? My openSuSE-client is a remote client, not local on the snapcast-server. Everything works fine, when I simply use an Raspi-Archlinux/32Bit-Client instead of the openSuSE-x86-64Bit-client. |
It looks like the same issue for me. It's not related to where the client is running, so it makes sense to link these two issues. Issue #722 is having the same problem when playing through PulseAudio:
Unfortunately there was no feedback yet, if the
On all of my machines there are PulseAudio as well as direct alsa devices, e.g.:
BTW: What sound device are you using (vendor, model)? |
sorry for the delay: I've now compiled the develop-branch and replaced the binary snapclient. Now everytyhing works fine with the option --player pulse !!! So since all other audio functions with pulseaudio are ok locally and remote, I think, that the "release"-(non-develop)-snapclient doesn't work correctly with the pulseaudio-alsa-environment. Since the "release"-snapclient works fine with "--player file | aplay -f cd", it obviously is "pulseaudio-in-the-middle"-problem. And since all other applications work with "pulseaudio-in-the-middle", it's probably the snapclient interface, but only in X86-64Bit-architecture. I've also seen that pulseaudio displays reasonable values for latency/buffer size in status-commands with pactl. So may be these values are corrupted on the way back to snapclient or misinterpreted? |
additional info: Since the old binary didn't reference any pulseaudio-library I'm wondering, why the problem only occurs with pulseaudio in the middle. Are the failing calls to "snd_pcm_avail_delay" located in the libasound-library? And are they not used when playing directly to alsa or when using the new option "--player pulse"? |
I'm working with an older Tower-PC with an NVIDIA-card, which is currently disabled. So the speakers are connected to the (mainboard?)-audio, which seems to be Intel. As inexperienced audio-user I'm not sure how to retrieve the HW-information. Pulseaudio reports: Alsa reports: |
I think that this is not a general amd64 issue. I have Linux Mint 64 bit running on a core2-duo (Mint 18.3) and on a Ryzen 5 (Mint 20). On both machines |
@hp4 can you please test if the current develop branch fixes this issue?
|
It does fix this issue for me. I was running 0.22 (latest release) for ARM on a Raspberry Pi 3b+ |
thanks @TurboGraphxBeige for the feedback. I can see such |
That's why I felt the need to report back to you! So much time invested! Strange thing is that I didn't have those errors before and I don't even know when this problem started to occur. Same machine, same hardware, etc. No change that I am aware of. It only happens when I run snapclient on the same machine that snapserver runs. I get literally flooded with snd_pcm_avail* errors/warnings as soon as there's a pulseaudio stream going through snapcast's pipe-sink. All the other snapclients on other machines would playback the snapserver stream. What I don't understand is that it looks like snapclient is trying to open an Alsa device but it's supposed to output to Pulseaudio. Should I open another issue maybe? I didn't think it needed to open an issue at first because I thought it was a misconfiguration on my machine. What do you think? |
Do you still get these messages? How do you start snapclient? Are you using the
I don't fully understand this. If you start snapclient with When using alsa with the default device, the audio will most probably be routed through pulse, because on most systems there will be a virtual alsa device set as default:
as you can read here: @hp4 can you check if the problem is solved with the latest develop version using alsa? |
I don't have these messages anymore (I removed the latest official release to install 99f7626). I start snapclient with a systemd service and the only client option is If I recall, I tried using I'll have to test everything again with the latest official release. I'll try changing ALSA configurations. |
@TurboGraphxBeige sounds good. If you have problems with |
Describe the bug
I have a collection of snapserver/snapclients working fine on Raspberry
Pis. My self-compiled snapclient on an OpenSuSE 64-Bit produces stuttering sound.
Everything works fine with pulseaudio, local and remote.
Routing snapclient with "--player file | aplay -f cd" to ALSA also works fine
Only snapclient -> pulseaudio doesn't work, see log below : snd_pcm_avail_delay failed
Steps to Reproduce
Environment details
Attach logfile if applicable
Generate logs with
snapclient --logfilter debug
orsnapserver --logging.filter debug
if possible and paste them in the following codeblockThe text was updated successfully, but these errors were encountered: