I have just installed shairport-sync to raspberry with params "with-airplay-2" & "with-apple-alac".
Then added "alac_decoder" = "apple" to shairport-sync config file.
So now I can get connection to my DAC via hifiberry digi+ coax and play lossless & hires lossless songs from Iphone.
I assume that shairport is using Airplay2 as it changed to use port 7000 vs. earlier installation without Airplay2 support.
Anyway, output rate (hw_params) says: format: S24_LE,subformat: STD,rate: 44100
Lossless should be 48000 and hires something more; but the output rate(hw_params) stays 44100 for both formats(lossless&hires) with default "auto" param. from shairport-sync.
Its possible to config shairport-sync to use e.g. 88200 or 176400; so I tested that DACs hw_params shows these values (if I config these to output_rate param in shairport-sync file). But I don't have any clue that is signal first coming 44100 and then shairport converts it to e.g. 88200?
Tested also below config to 'etc/asound.conf'
pcm "hw:0"
rate 48000
This way I get S16_LE/48000 rate from hw_params when shairport connected.
Do you have any experience or hints howto enable/use correct rate with Apple lossless?
Then added "alac_decoder" = "apple" to shairport-sync config file.
So now I can get connection to my DAC via hifiberry digi+ coax and play lossless & hires lossless songs from Iphone.
I assume that shairport is using Airplay2 as it changed to use port 7000 vs. earlier installation without Airplay2 support.
Anyway, output rate (hw_params) says: format: S24_LE,subformat: STD,rate: 44100
Lossless should be 48000 and hires something more; but the output rate(hw_params) stays 44100 for both formats(lossless&hires) with default "auto" param. from shairport-sync.
Its possible to config shairport-sync to use e.g. 88200 or 176400; so I tested that DACs hw_params shows these values (if I config these to output_rate param in shairport-sync file). But I don't have any clue that is signal first coming 44100 and then shairport converts it to e.g. 88200?
Tested also below config to 'etc/asound.conf'
pcm "hw:0"
rate 48000
This way I get S16_LE/48000 rate from hw_params when shairport connected.
Do you have any experience or hints howto enable/use correct rate with Apple lossless?
Last edited: