-
Notifications
You must be signed in to change notification settings - Fork 20
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
After some seconds or song change, sound is gone #14
Comments
As for spotify, this is not - yet - supported (check the README) For the sound issue, I have replace alsa to PulseAudio yesterday, so the latest version might have undiscovered issue. I did listen for hours yesterday without problems - on a Linux desktop - and your messages does not prompt any errors. What client are you using (iPhone ? HomePod ? Mac Apple Music ?) |
iPhone with iOS 14.6. |
Usually the logs are good enough - All errors should be reported. You can try to look at pulseaudio logs as specified here : https://fedoraproject.org/wiki/How_to_debug_PulseAudio_problems but I have some concerns that it will be either too verbose or useless... I have added some logs on the latest main branch. It logs when the player add silence to the audio stream to "sync audio clocks". Let me know if you can have a look. I will also look on my side. |
I have updated git main branch where I have remove temporary audio sync (which is still WIP anyway). |
Much better, but still after some minutes or change of song its gone. `2021/07/29 08:41:50 response sent : body 0 ` But maybe thats now an error in the log? |
2021/07/29 08:41:58 server.go:62: Error:error decoding to pcm EOF I did not encounter this behaviour during my tests yesterday on raspi1 (listen to for 2/3 hours). I am working actively to improve audio sync (including buffering). Be careful, it is actively developed and things may brake. |
As additional information, when the error occured with the pcm eof, I did not change the song or the position or anything else. Also no network error. It just stops in the middle of a song. I just tested also the branch. 5 Songs played so far, without problems :). Edit: If I try to reconnect then:
Complete restart of goplay2 and I can play again. |
Hello, This unexpected network - related - issue is really a behaviour I have never encountered. Anyway, to save CPU time I have moved part of the PCM decoding elsewhere. I push my changes on the feature/audio-sync branch. Do you have many other things running on your raspberry? Is is possible that there was some swapping or cpu congestion ? Which version of libfdk-acc have you on your system ? |
So, I tried the newest commit: pcm eof error is gone from logs, it just stops. First, try after 40seconds, second try after 2:30min, no error in the log. libfdk-aac-dev (1:2.0.0-dmo1). Network: iPhone is in 5GHz Network, PI 3B is connected per Ethernet. I just have running Homebridge on the Pi, don't think this takes so much CPU time, since I'm not doing anything at that moment, just idle. Maybe I just try it again in 1-2 Months? |
Let's do that :). I have a Raspberry Pi 3b, I will install goplay2 on it. Which distrib are you using ? Sorry to not be more helpful, I have no issue like yours and the absence of logs puzzles me. Alls errors are catched and logged. That is really strange as it work seamlessly on my raspi1, linux and mac... |
Pretty old -> Raspbian GNU/Linux 9 (stretch). I have it running since years for homebridge. |
Thanks. I let you know when I have improve things. I will probably add some more verbose logs (like request body and responses). Thanks again for you help |
Hi,
tried the latest version. Music App is working, Spotify I dont get any sound at all.
When I'm listening around 40seconds later the sound is gone. And need to reconnect to get it back.
I have built it on a Raspberry PI 3B. Any ideas?
This is the log:
The text was updated successfully, but these errors were encountered: