RPi3 + Hifiberry Digi+ + Shairport resampling

Raspberry Pi related support

RPi3 + Hifiberry Digi+ + Shairport resampling

Postby nbnb » 05 Jun 2016, 12:49

nbnb
 
Posts: 8
Joined: 05 Jun 2016, 12:28

Re: RPi3 + Hifiberry Digi+ + Shairport resampling

Postby nbnb » 11 Jun 2016, 13:20

bump.

basically, is there a way to resample everything to 88.2 including incoming airplay streams?
nbnb
 
Posts: 8
Joined: 05 Jun 2016, 12:28

Re: RPi3 + Hifiberry Digi+ + Shairport resampling

Postby hondagx35 » 11 Jun 2016, 15:08

Hi nbnb,

you can try to change the rate by using dmix automatic sample rate conversion

- sudo nano /usr/share/alsa/alsa.conf
- defaults.pcm.dmix.rate 88200 (default is 48000)

Not tested, so no idea if this will work.

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi3 + Hifiberry Digi+ + Shairport resampling

Postby nbnb » 28 Jun 2016, 20:16

thanks, i'll try...

ok, so here is what i don't know how to do: currently two alsa cards are set up: the internal bcm soandso... and my hifiberry digi+. in order to use alsa resampling i guess i would have to define a new alsa card (dmix) so that i can choose that card from the rune ui for audio output, yes? it seems i need

1. define dmix device
2. set sample rate to 88.2
3. ensure libsamplerate is used with high quality settings so that sound output is as good as possible despite not being bit perfect
4. make sure shairport uses that dmix device (mpd could still use the current setup with an alsa hw device.)
5. do all of the above in such a way that changes via the runeUI or system updates do not nuke everything.

how do i do that? do i have to make an .asoundrc in the root home directory? or better somewhere in /usr/share? will it not be overwritten by sonething runeplayer does?
nbnb
 
Posts: 8
Joined: 05 Jun 2016, 12:28

Re: RPi3 + Hifiberry Digi+ + Shairport resampling

Postby hondagx35 » 28 Jun 2016, 22:55

Hi,

did you try to modify /usr/share/alsa/alsa.conf as shown above?

Frank
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

Re: RPi3 + Hifiberry Digi+ + Shairport resampling

Postby nbnb » 29 Jun 2016, 08:08

i did now. edited the existing alsa.conf to change the sample rate (nothing else). did not work. shairport does reccognize that there is a stream and blocks audio output for mpd, but no output.
nbnb
 
Posts: 8
Joined: 05 Jun 2016, 12:28

support RuneAudio Donate with PayPal


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 38 guests
cron