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
issue with the shairport - no sound #4384
Comments
Many thanks for your report.
Please fix the link. Also a brief explanation here would not be bad, including which SBC/device is used etc 😉. |
I guess this is a related forum post https://dietpi.com/phpbb/viewtopic.php?t=9028 |
hello, |
You said "last 3 comments here" above but gave a link to the repository root. Okay there is a lot of multiple issues linked, with very different problems/questions, so I lost the overview of what your particular issue or question is now. It seems you try to get it working with Bluetooth speakers? Does it work when playing an audio file from the DietPi system itself? Since setting up Bluetooth speakers with ALSA is not trivial: #3456 |
@MichaIng |
@MichaIng what i am trying to do is to stream (using roonlabs.com roon-bridge app) via airplay to dietpi and dietpi will forward it to the the bluetooth transmitter plugged into it ... so music will be playbacked on the bluetooth speaker (bose mini) connected to the dietpi via bluetooth transmitter. This doesnt work; sound is chopping or there is no sound. When i tried more simple scenario to stream (using roonlabs.com) using roon-bridge to dietpi and let it forward sound bluetooth transmitter connected to bose bluetooth spekaer all works fine. |
Okay, so generally playing through the Bluetooth speakers works. Is the regular USB disconnects in And how did you set up the ALSA (if so) to use the Bluetooth transmitter/speakers? |
Hi, Yes it sometimes show up in dmesg. i dont know why / and how often, mostly if pc is idling. I didnt do any setup of ALSA, I assume it happened somehow using roon-bridge. |
The USB disconnects is what I'd take care of first. That's on a level where audio is not involved at all but different players handle such disconnects differently. I saw some of the Shairport Sync errors were about device "in use"/"busy", probably Shairport Sync blocks on a disconnect while Roon alone releases immediately, or so. Bad that the XU4 had a single USB port only.
Probably Roon Bridge accesses audio devices directly somehow. I've no experience with it but will have a look into its config files. |
@michalng you are right, i also tried Banana Pi BPI-M1 and there are also disconnects. But at least on bpi-m1 i can get some sound via airplay - chopped one. I just plugged usb BT to rpi4 to leave it on for 24h if there will be any disconnect in dmesg. What do you mean by single usb port only - it has 3 usb ports i think. No, no issue with voltage/power i have original adaptors - enought Ampers so by that way all is stable. The device sits tight and all is clean; i can guarantee ... so maybe its issue of the vendor who created that BT - some incompatibility with drivers/kernel? Do I have to try other BT? I found https://avantree.com/dg60-bluetooth-usb-audio-transmitter#spec-tab and seller confirmed it can handle more then 44k sample rate and its compatible with linux. Yes, so many "in use"/"busy" so i have no clue why? Disconnects happened lets say 4x in 24hours... so i dont believe the disconnects are connected with "in use"/"busy" " Probably Roon Bridge accesses audio devices directly somehow. " -> i think so, or can get confirmed from roon folks. Any idea what to do now? |
@MichaIng so running rpi4 with ropiee 30min ... here u can see also disconnects
|
these resets are increassing ... since the previous post its already on number [24363.604074] usb 1-1.2: USB disconnect, device number 43 |
So it seems to be an issue with the BT transmitter itself then. Interesting is that the disconnects are quite precisely every 10 minutes (600 seconds), with a little shift that fits to the ~0.5 seconds disconnect time and ~1 second reconnect/setup time. Is it the same on the BPi? |
hi,
|
even there are these disconnects i dont believe thats the issue why there is no sound/or sound is chopping. |
Even if those disconnects were not related to the choppy audio, it would break playback every 10 minutes for 1-2 seconds, which isn't great either. So before assuming a general issue with Shairport Sync, I'd definitely test a new BT transmitter first, that has no regular disconnects. But I'll also rebuild our Shairport Sync packages as a new version is available: https://github.com/mikebrady/shairport-sync/releases/tag/3.3.8 |
@MichaIng do i have to compile it? |
Sorry for the late reply. I'll recompile our Shairport Sync packages the next days and inform you once done and how to upgrade. |
New packages are ready:
|
@MichaIng not working at all; no sound. Even i bought completely new BT avantree dg60. I can get chopping sound on ropieee or banana but no sound from dietpi. How can i see / access logs from shairport running on dietpi? |
|
Logs can be reviewed via: But there are no regular disconnects anymore with the new Bluetooth adapter? Does it work when playing a local audio file, e.g. a wav file via |
everything plays fine while using roon-bridge ie streaming music from roon to roon-bridge installed on dietpi and from BT transmitted to bose mini speaker. When I stream to airplay even from roon or directly from my iphone no sound at all. :( No more disconnect in dmesg. |
running on banana pi i have at least some sound; chopping but sound ... but here nothing ;( |
root@DietPi:/tmp# journalctl -u shairport-sync |
dunno how to run that test root@DietPi:/tmp# speaker-test -D "hw:DG60" speaker-test 1.1.8 Playback device is hw:DG60 even BT is there hw:CARD=DG60,DEV=0 |
How did you actually configure ALSA? Did you use It seems you don't have the automatic conversion plugin enabled, which means best sound quality, but if the sound card/driver does not support the format of the audio source, it won't play something. If you used |
hm thats strange... so i did |
okay i make it works also on banana! pow! the mixer volume was completely off. thanks for all your help! |
the only thing i do not understand is ... why there are constant disconnects of BT in dmesg... weird :( |
Probably it is simply a hardware issue of that adapter, a broken cable, loose connection internally, or so. |
well its not a cable ;/ its something like usb stick; so its directly plugged into pc ;-( |
I mean a cable or connection or broken solder inside of the sticks case. |
i see. its strange its happening regularly in intervals...also its not affecting playback. |
Ah true, I forgot the 10 minutes interval. Yeah that is doesn't fit to an internal connection issue, but more a firmware or driver bug. If you have a chance, I'd contact the manufacturer about it, in case of warranty, making use of it. Especially for audio applications, it's a no-go to have regular connection losses, of course, even if it's just for a very short time. |
hi @MichaIng, i reinstalled pc with armbian; and i am gettin lets say almost same issue as we started that thread... i am not getting disconnects in dmesg; but sound is chopping even via bluetooth or via airplay :( thats the shairport-sync log alsa-info The distro is based on the latest ubuntu; so thats why i am confused why its not working as expected ... as i replicated all the configuration, as we discussed here :( if u mind to take a look... One more observation; now i am running it on system with systemd, and in htop i can see so many shairport-sync processes; and it also looks like its consuming almost 90% of CPU on both cores, strange. Bc before with OS bananian it worked fine on the same HW. And also i found in syslog Jun 14 02:07:32 bananapi shairport-sync: warning: Speed requested: 44100. Speed available: 48000. Maybe that alsa plugin type plug is not working properly on that ubuntu, dunno. Also looks like its shairport-sync is consuming ~99% of cpu ... while streaming. Maybe it requires some tuning in conf file. Linux bananapi 5.4.88-sunxi |
Please check your And can you check which sampling rate is supported by that sound card? |
hi, no clue then. |
And these "Speed requested: 44100. Speed available: 48000" stay even with the plug auto conversion plugin enabled?
It seems not to be used, as |
@MichaIng hi, I can try to do that and get it last shot as its crazily time consuming :( i will need to restore ubuntu edit conf as u suggested. |
If this is your
then |
Hi @MichaIng alsa = output_device = "hw:WT04"; When i changed shairport-sync conf to alsa = output_device = "default"; All started to work flawlessly! Great, so much appreciate all your help! |
But on ubuntu there has to be one more problem... error... It seem that issue in that comment is kind of random, sometimes it happens sometimes it does not. |
Generally, running multiple players does not work OOTB. I'm not sure how fast/consequently audio devices are released when you stop playback in one player. It could be tested if the dmix plugin makes a difference, which allows to mix multiple playback streams:
|
maybe almost same behavior? but it looks like if i do playback via roonbridge or shairport; if i stop one of these and way lets say 5 sec ; start the other one... all seems to be fine. |
The dmix plugin should actually solve such transition issues, although the kind where one player fails with a "device is busy"-like error as long as the other didn't release it. With the dmix plugin you should be possible to play audio streams via Stairport Sync and Roon Bridge concurrently and they should be mixed together. |
that doesnt work at all ... so seems its all messed. ;/ also shairport-sync requires volume management to be done on spekaer physicaly, roonbridge via its app ... maybe i have wrong alsa configs etc... hard to say. |
If that can help, I had not sound with just install and had to uncomment alsa section in shairport file and restart the services. Even thought that is probably obvious. |
@renaudl |
I encommented these llines from shaireport-sync config file. I guess output-device alone would have worked.
|
@renaudl
These settings (aside of |
I'll mark this as closed. Feel free to reopen if required. |
the latest dietpi version doesnt make any sound when using shairport-sync
last 3 comments here describe the issues.
https://github.com/mikebrady/shairport-sync
The text was updated successfully, but these errors were encountered: