Thank you for your donation!


Solved: Airplay "bug" in 6.0.0 - audio format related
#1
Hi,

Thanks for everything you do with MoOde  Smile

I've been troubleshooting a problem over the last couple of hours.

Using RPi 2B with Audioquest Dragonfly (USB).
Background: Airplay works beautifully in 5.3, but not in 6.0.0 (I skipped 5.3.1).
Symptom: Airplay is available, iPhone and iPad will connect and play, but no audio.

Now I'm definitely not an expert, but the issue appears to be with the default Airplay configuration and the Airplay output format in use. With 5.3, and Airplay bit depth set to the default 16 bit, everything works fine. I noticed the following in the logs which subsequently seemed to be relevant:

Code:
Aug 11 12:04:25 moode shairport-sync:          0.000056563|alsa device parameters:
Aug 11 12:04:25 moode shairport-sync:          0.000084948|  access type = MMAP_INTERLEAVED
Aug 11 12:04:25 moode shairport-sync:          0.000083699|  format = 'S24_3LE' (Signed 24 bit Little Endian in 3bytes)
Aug 11 12:04:25 moode shairport-sync:          0.000075469|  subformat = 'STD' (Standard)
Aug 11 12:04:25 moode shairport-sync:          0.000542190|  number of channels = 2
Aug 11 12:04:25 moode shairport-sync:          0.000061042|  number of significant bits = 24
Aug 11 12:04:25 moode shairport-sync:          0.000054115|  rate = 44100 frames per second (precisely).

With the same config in 6.0.0, those lines were missing, and there were numerous instances of the following errors:

Code:
Aug 11 12:08:10 moode shairport-sync:          0.000116512|alsa: error -77 ("File descriptor in bad state") writing 22050 samples to alsa device.
Aug 11 12:08:10 moode shairport-sync:          0.000339851|alsa: DAC in odd SND_PCM_STATE_* 0 prior to writing.
Aug 11 12:08:10 moode shairport-sync:          0.000134587|alsa: error -77 ("File descriptor in bad state") writing 1024 samples to alsa device.
Aug 11 12:08:10 moode shairport-sync:          0.000065366|alsa: alsa_buffer_monitor_thread_code error -77 ("File descriptor in bad state") writing 1024 samples to alsa device -- 1 errors in 1 trials.
Aug 11 12:08:10 moode shairport-sync:          0.003939876|alsa: DAC in odd SND_PCM_STATE_* 0 prior to writing.

I played with the config in 6, and if I manually set the bit depth to "24 bit 3LE", Airplay works beautifully again.

So all's well that ends well, but I just wanted to report that the same config behaves differently between 5.3 and 6.0.0.

Cheers.
Reply
#2
Glad its working :-) moOde 5 used shairport-sync 3.3.1. moOde 6 uses latest 3.3.2 so most likely something changed in this release to cause the issue you experienced, but 6 is based on a whole new Raspbian release which includes updated ALSA stack so maybe this also played a role.
Reply
#3
I'm having issues with Airplay as well.
I thought i had broken something, but just did a fresh install of Moode 6.1.0

I've added my network share as a music source and all is normal.
Spotify players works fine.

Airplay however, does not work properly.
It shows up on my Apple devices and i can connect, but then i barely hear some output at max volume and it has lots of crackling noise in it...it's totally weird!
All my settings are the same as i had in Moode 5 where everything worked fine.
I have tried all bit depths (32 bit used to be the one that worked) but this made no difference.

I can't seem to figure out what it can be. Anyone have any thouhts?

Thanks!
JB
Reply
#4
Curious thread.

I just fired up the Airplay renderer on the same system I was using to test Bluetooth behavior to contribute to a different thread yesterday: moOde 6.1.0 on an RPi4B driving a Khadas Tone Board via USB.

Turned to my iPad 9.7 (iOS 12.4.1) and started the Spotify app. I'm getting nice output via either the Airplay renderer or the Spotify renderer using the stock settings (for Airplay: Sox/16bit/44.1kHz).

Not sure what to suggest you try but first stop is a check of the logs for suspicious messages from shairport-sync.

Regards,
Kent
Reply
#5
Well I'll be....

I was initially trying to stream from Apple music from my iPhone using Airplay, which gave me the issues described above.
I just tried to stream from Spotify on my phone using Airplay rather than the Spotify streamer and presto, all is fine!
Tried again to stream from Apple music and all works well.

The shairport-sync log doesn't have anything in it and the Moode log doesn't show anything out of the ordinary...
Maybe my phone threw a wobbly??

JB
Reply


Forum Jump: