Page 1 of 1

MPD: Soxr resampling

PostPosted: 17 Mar 2015, 16:33
by paranoidjack
With the release of the RaspberryPI2 it should be possible to resample audio without putting too much stress on the hardware - could we perhaps see the option to resample within the MPD configuration menu in future revisions?

Re: MPD: Soxr resampling

PostPosted: 17 Mar 2015, 16:48
by ACX
Yes, with more powerful hardware this is going to be integrated in the future, with a proper user interface to setup it.

Re: MPD: Soxr resampling

PostPosted: 17 Mar 2015, 17:23
by paranoidjack
Thanks, good to hear.

Am I right to think that the MPD that's included in the Raspberry PI 2 image natively supports Sox resampling?

I ask because I've added the lines below to the mpd.conf and there's a sharp rise to around 30-35% cpu usage which I presume is the resampling.

audio_output_format "192000:24:2"
samplerate_converter "soxr very high"

Re: MPD: Soxr resampling

PostPosted: 18 Mar 2015, 15:33
by ACX
paranoidjack wrote:Am I right to think that the MPD that's included in the Raspberry PI 2 image natively supports Sox resampling?

Let's wait Frank's confirmation for this, but it should be so.

Re: MPD: Soxr resampling

PostPosted: 19 Nov 2016, 19:53
by flovato
Hi guys this is my actual setup.

Raspberry PI 3 with Moode audio.
DAC Gustard X20 connected to Raspberry I2S.

I would like to work Rune because listen Spotify and i prefer Rune GUI.

Gustard X20 I2S works in Moode only in resampling 24/192 soxr very hight quality.

How to set same in Rune ?
Can Someone help me ?

Re: MPD: Soxr resampling

PostPosted: 20 Nov 2016, 16:49
by hondagx35
Hi flovato,

Gustard X20 I2S works in Moode only in resampling 24/192 soxr very hight quality.

How to set same in Rune ?

This can be done by adding
format "192000:24:*"
to your mpd.conf file.

The problem is, that rune modifies this file each time you reboot or save MPD settings.
To fix this you have to add your DAC to our database and also add this format option.
For a first test you can try:
- get access to the console
- modify /etc/mpd.conf
Code: Select all
audio_output {
   name       "snd_rpi_hifiberry_dacplus"
   type       "alsa"
   device       "hw:1,0"
   auto_resample    "no"
   auto_format    "no"
   format   "192000:24:*"
   enabled    "yes"
}

- restart mpd
Code: Select all
systemctl restart mpd


If this works we can try to add your DAC to the data base.
For this we need the debug info gathered while DAC is attached.

This will not work for spotify, because spotify directly outputs the sound through alsa with 16/48000.

Frank

Re: MPD: Soxr resampling

PostPosted: 23 Nov 2016, 15:15
by flovato
Thanks Frank.