RuneAudio+R e6

Raspberry Pi related support

Re: RuneAudio+R e6

Postby s.k. » 12 Nov 2020, 07:32

Hi,
IMHO the only settings that make sense in SoXR customization are the resampling parameters of the output.
From what I understand, when something must resample is better to be in a sample rate that the Dac can handle.
Also for the resampling the SoXR is a better option than the internal resampler.
According the above, the settings that I am using are :
Code: Select all
audio_output {
        name            "snd_allo_digione"
        device          "hw:0,0"
        type            "alsa"
        format          "192000:24:2"
      # format          "*:24:*"
        auto_resample   "no"
        auto_channels   "no"
        auto_format     "no"
        mixer_type      "none"
}


The above setting among the :
Code: Select all
resampler {
        plugin          "soxr"
        quality         "very high"
}


In theory that makes my system – when it needs with the auto_resample "no" – to resample in 24/192 for my DAC.
If I need to have 24 bit depth - no matter the sample rate - I use the format "*:24:*"

Very useful info can find here :

https://www.runeaudio.com/forum/mpd-soxr-resampling-t996.html

https://www.runeaudio.com/forum/using-soxr-resampling-with-rune-0-4-beta-t5835.html
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: RuneAudio+R e6

Postby R101 » 12 Nov 2020, 11:59

Hi s.k.,

So far as I can see, the output settings are configured according to your output device. If you change them by editing the mpd.conf file, the changed settings will only last until next reboot, when the file will be overwritten with what is in the MPD settings page.

Try moving the # to the line above and restart mpd. It will output 24 bits at the source's sample rate until you reboot or make any other changes to settings.

From what rern has said, it looks as if the resample settings will soon be added to the settings page, which will solve the problem. I have several DAC chips which I like to play around with.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: RuneAudio+R e6

Postby s.k. » 12 Nov 2020, 12:05

To edit mpd.conf you first have to make it modifiable with:
Code: Select all
    chattr -i /etc/mpd.conf


VERY IMPORTANT: when you are done editing mpd.conf make it unmodifiable again with:
Code: Select all
    chattr +i /etc/mpd.conf


(from the "[Guide] Using Soxr Resampling with Rune 0.4 Beta")
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: RuneAudio+R e6

Postby R101 » 12 Nov 2020, 12:15

s.k. wrote:To edit mpd.conf you first have to make it modifiable with:
Code: Select all
    chattr -i /etc/mpd.conf


VERY IMPORTANT: when you are done editing mpd.conf make it unmodifiable again with:
Code: Select all
    chattr +i /etc/mpd.conf


(from the "[Guide] Using Soxr Resampling with Rune 0.4 Beta")


Can't say I found that necessary, s.k.

Regarding klassikmann's comment, perhaps rern could add an "include file" line so that those who know what they are doing, or like to experiment, could use a custom file in the home folder.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: RuneAudio+R e6

Postby s.k. » 12 Nov 2020, 12:29

Hi R101,
I stopped the MPD
I made the mpd.conf file modifiable
I removed the # from my mpd.conf file – as you suggested
I made the mpd.conf file unmodifiable again
I reload the daemons & started the mpd
I rebooted the system

The change that I was made was present.
I am on e6 on a Pi2
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: RuneAudio+R e6

Postby R101 » 12 Nov 2020, 12:45

Hi s.k.,

The difference is that you made the file unmodifiable. In +R e6 it is modifiable. Looks like a good workaround if you don't find any problems.

Your file has two format settings, one of which is commented out. If you just delete the # I am not sure which setting it will use, but I assume the second one.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: RuneAudio+R e6

Postby s.k. » 12 Nov 2020, 14:25

Due to these observations I reviewed my MPD configuration.
The configuration described previously it seamed that convert everything (by upsampling or downsampling) to 24/192 - the maximum value of my dac.

In order to have the less possible conversions I modified my audio_output to this :
Code: Select all
audio_output {
        name            "snd_allo_digione"
        device          "hw:0,0"
        type            "alsa"
        auto_resample   "no"
        auto_format     "no"
        mixer_type      "none"
}

And kept the :
Code: Select all
resampler {
        plugin          "soxr"
        quality         "very high"
}

With these settings alsa is handling the native sample rate up to my Dac capabilities.
Above those, the SoXR make the downsampling to the maximum possible (24/192).
Here part of my log
Code: Select all
Nov 12 14:56 : client: [282] process command "play"
Nov 12 14:56 : playlist: play 0:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/original CD 16BIT_44kHz/2L-139_01_stereo_01.cd.flac"
Nov 12 14:56 : client: [282] command returned 0
Nov 12 14:56 : playlist: queue song 1:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_96kHz/2L-139_stereo_FLAC_88k_24b_01.flac"
Nov 12 14:56 : client: [282] process command list
Nov 12 14:56 : client: process command "status"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: process command "currentsong"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: [282] process command list returned 0
Nov 12 14:56 : client: [282] closed
Nov 12 14:56 : decoder_thread: probing plugin flac
Nov 12 14:56 : client: [283] opened from 127.0.0.1:45932
Nov 12 14:56 : client: [283] process command list
Nov 12 14:56 : client: process command "status"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: process command "currentsong"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: [283] process command list returned 0
Nov 12 14:56 : decoder: audio_format=44100:16:2, seekable=true
Nov 12 14:56 : alsa_output: opened hw:0,0 type=HW
Nov 12 14:56 : alsa_output: buffer: size=128..131072 time=2902..2972155
Nov 12 14:56 : alsa_output: period: size=64..65536 time=1451..1486078
Nov 12 14:56 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Nov 12 14:56 : alsa_output: format=S16_LE (Signed 16 bit Little Endian)
Nov 12 14:56 : alsa_output: buffer_size=22050 period_size=4410
Nov 12 14:56 : output: opened "snd_allo_digione" (alsa) audio_format=44100:16:2
Nov 12 14:56 : client: [283] closed
Nov 12 14:56 : client: [2] process command "status"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [8] process command "idle"
Nov 12 14:56 : client: [8] command returned 1
Nov 12 14:56 : client: [8] process command "idle"
Nov 12 14:56 : client: [8] command returned 1
Nov 12 14:56 : client: [273] closed
Nov 12 14:56 : client: [2] process command "currentsong"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [2] process command "playlistinfo"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [2] process command "idle"
Nov 12 14:56 : client: [2] command returned 1
Nov 12 14:56 : client: [2] process command "status"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [284] opened from 127.0.0.1:45934
Nov 12 14:56 : client: [284] process command list
Nov 12 14:56 : client: process command "status"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: process command "currentsong"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: [284] process command list returned 0
Nov 12 14:56 : client: [2] process command "currentsong"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [285] opened from 127.0.0.1:45936
Nov 12 14:56 : client: [285] process command "clearerror"
Nov 12 14:56 : client: [285] command returned 0
Nov 12 14:56 : client: [285] process command "status"
Nov 12 14:56 : client: [285] command returned 0
Nov 12 14:56 : client: [285] process command "currentsong"
Nov 12 14:56 : client: [285] command returned 0
Nov 12 14:56 : client: [2] process command "playlistinfo"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [284] closed
Nov 12 14:56 : client: [2] process command "idle"
Nov 12 14:56 : client: [2] command returned 1
Nov 12 14:56 : client: [286] opened from 127.0.0.1:45938
Nov 12 14:56 : client: [286] process command "idle"
Nov 12 14:56 : client: [286] command returned 1
Nov 12 14:56 : client: [285] closed
Nov 12 14:56 : client: [5] process command "status"
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [287] opened from 127.0.0.1:45942
Nov 12 14:56 : client: [287] process command list
Nov 12 14:56 : client: process command "tagtypes "clear""
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: process command "playlistinfo"
Nov 12 14:56 : client: command returned 0
Nov 12 14:56 : client: [287] process command list returned 0
Nov 12 14:56 : client: [287] closed
Nov 12 14:56 : client: [5] process command "currentsong"
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [5] process command "playlistinfo "1""
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [5] process command "status"
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [5] process command "currentsong"
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [5] process command "playlistinfo "1""
Nov 12 14:56 : client: [5] command returned 0
Nov 12 14:56 : client: [2] process command "status"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [2] process command "currentsong"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [2] process command "playlistinfo"
Nov 12 14:56 : client: [2] command returned 0
Nov 12 14:56 : client: [2] process command "idle"
Nov 12 14:56 : client: [2] command returned 1
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "1""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "1""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "1""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "1""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [288] opened from 127.0.0.1:45944
Nov 12 14:57 : client: [288] process command "play "1""
Nov 12 14:57 : playlist: play 1:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_96kHz/2L-139_stereo_FLAC_88k_24b_01.flac"
Nov 12 14:57 : decoder_thread: probing plugin flac
Nov 12 14:57 : decoder: audio_format=88200:24:2, seekable=true
Nov 12 14:57 : client: [288] command returned 0
Nov 12 14:57 : playlist: queue song 2:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_192kHz/2L-139_stereo_FLAC_176k_24b_01.flac"
Nov 12 14:57 : alsa_output: opened hw:0,0 type=HW
Nov 12 14:57 : alsa_output: buffer: size=64..65536 time=725..743039
Nov 12 14:57 : alsa_output: period: size=32..32768 time=362..371520
Nov 12 14:57 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Nov 12 14:57 : alsa_output: format=S24_LE (Signed 24 bit Little Endian)
Nov 12 14:57 : alsa_output: buffer_size=44100 period_size=11025
Nov 12 14:57 : output: opened "snd_allo_digione" (alsa) audio_format=88200:24:2
Nov 12 14:57 : client: [288] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [288] process command list returned 0
Nov 12 14:57 : client: [286] closed
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [288] closed
Nov 12 14:57 : client: [289] opened from 127.0.0.1:45946
Nov 12 14:57 : client: [289] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [289] process command list returned 0
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [289] closed
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [290] opened from 127.0.0.1:45948
Nov 12 14:57 : client: [290] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [290] process command list returned 0
Nov 12 14:57 : client: [290] closed
Nov 12 14:57 : client: [291] opened from 127.0.0.1:45950
Nov 12 14:57 : client: [291] process command "idle"
Nov 12 14:57 : client: [291] command returned 1
Nov 12 14:57 : client: [292] opened from 127.0.0.1:45952
Nov 12 14:57 : client: [292] process command "clearerror"
Nov 12 14:57 : client: [292] command returned 0
Nov 12 14:57 : client: [292] process command "status"
Nov 12 14:57 : client: [292] command returned 0
Nov 12 14:57 : client: [292] process command "currentsong"
Nov 12 14:57 : client: [292] command returned 0
Nov 12 14:57 : client: [292] closed
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "2""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "2""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "2""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "2""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [293] opened from 127.0.0.1:45956
Nov 12 14:57 : client: [293] process command "play "2""
Nov 12 14:57 : playlist: play 2:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_192kHz/2L-139_stereo_FLAC_176k_24b_01.flac"
Nov 12 14:57 : decoder_thread: probing plugin flac
Nov 12 14:57 : decoder: audio_format=176400:24:2, seekable=true
Nov 12 14:57 : client: [293] command returned 0
Nov 12 14:57 : playlist: queue song 3:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_352.8kHz/2L-139_stereo_FLAC_352k_24b_01.flac"
Nov 12 14:57 : alsa_output: opened hw:0,0 type=HW
Nov 12 14:57 : alsa_output: buffer: size=64..65536 time=362..371520
Nov 12 14:57 : alsa_output: period: size=32..32768 time=181..185760
Nov 12 14:57 : alsa_output: default period_time = buffer_time/4 = 371519/4 = 92879
Nov 12 14:57 : alsa_output: format=S24_LE (Signed 24 bit Little Endian)
Nov 12 14:57 : alsa_output: buffer_size=65536 period_size=16384
Nov 12 14:57 : output: opened "snd_allo_digione" (alsa) audio_format=176400:24:2
Nov 12 14:57 : client: [293] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [293] process command list returned 0
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [291] closed
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [293] closed
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [294] opened from 127.0.0.1:45960
Nov 12 14:57 : client: [294] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [294] process command list returned 0
Nov 12 14:57 : client: [295] opened from 127.0.0.1:45958
Nov 12 14:57 : client: [295] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [295] process command list returned 0
Nov 12 14:57 : client: [294] closed
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "3""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [295] closed
Nov 12 14:57 : client: [296] opened from 127.0.0.1:45962
Nov 12 14:57 : client: [296] process command "idle"
Nov 12 14:57 : client: [296] command returned 1
Nov 12 14:57 : client: [297] opened from 127.0.0.1:45964
Nov 12 14:57 : client: [297] process command "clearerror"
Nov 12 14:57 : client: [297] command returned 0
Nov 12 14:57 : client: [297] process command "status"
Nov 12 14:57 : client: [297] command returned 0
Nov 12 14:57 : client: [297] process command "currentsong"
Nov 12 14:57 : client: [297] command returned 0
Nov 12 14:57 : client: [297] closed
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "3""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "3""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "3""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "3""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [298] opened from 127.0.0.1:45968
Nov 12 14:57 : client: [298] process command "play "3""
Nov 12 14:57 : playlist: play 3:"NAS/Audiophile_Recordings/_Test_Files/Varius Sample Rate Files/Stereo 24BIT_352.8kHz/2L-139_stereo_FLAC_352k_24b_01.flac"
Nov 12 14:57 : decoder_thread: probing plugin flac
Nov 12 14:57 : decoder: audio_format=352800:24:2, seekable=true
Nov 12 14:57 : client: [298] command returned 0
Nov 12 14:57 : client: [298] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : alsa_output: opened hw:0,0 type=HW
Nov 12 14:57 : alsa_output: buffer: size=64..65536 time=333..341334
Nov 12 14:57 : alsa_output: period: size=32..32768 time=166..170667
Nov 12 14:57 : alsa_output: default period_time = buffer_time/4 = 341333/4 = 85333
Nov 12 14:57 : alsa_output: format=S24_LE (Signed 24 bit Little Endian)
Nov 12 14:57 : alsa_output: buffer_size=65536 period_size=16384
Nov 12 14:57 : output: opened "snd_allo_digione" (alsa) audio_format=192000:24:2
Nov 12 14:57 : soxr: soxr engine 'cr64'
Nov 12 14:57 : soxr: soxr precision=28, phase_response=50.00, passband_end=0.91, stopband_begin=1.00
Nov 12 14:57 : soxr: samplerate conversion ratio to 0.54
Nov 12 14:57 : output: converting in=352800:24:2 -> f=352800:24:2 -> out=192000:24:2
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [298] process command list returned 0
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [296] closed
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [8] process command "idle"
Nov 12 14:57 : client: [8] command returned 1
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [2] process command "status"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "currentsong"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [2] process command "playlistinfo"
Nov 12 14:57 : client: [2] command returned 0
Nov 12 14:57 : client: [298] closed
Nov 12 14:57 : client: [299] opened from 127.0.0.1:45970
Nov 12 14:57 : client: [299] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [299] process command list returned 0
Nov 12 14:57 : client: [2] process command "idle"
Nov 12 14:57 : client: [2] command returned 1
Nov 12 14:57 : client: [299] closed
Nov 12 14:57 : client: [300] opened from 127.0.0.1:45972
Nov 12 14:57 : client: [300] process command list
Nov 12 14:57 : client: process command "status"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: process command "currentsong"
Nov 12 14:57 : client: command returned 0
Nov 12 14:57 : client: [300] process command list returned 0
Nov 12 14:57 : client: [301] opened from 127.0.0.1:45974
Nov 12 14:57 : client: [301] process command "idle"
Nov 12 14:57 : client: [301] command returned 1
Nov 12 14:57 : client: [300] closed
Nov 12 14:57 : client: [302] opened from 127.0.0.1:45976
Nov 12 14:57 : client: [302] process command "clearerror"
Nov 12 14:57 : client: [302] command returned 0
Nov 12 14:57 : client: [302] process command "status"
Nov 12 14:57 : client: [302] command returned 0
Nov 12 14:57 : client: [302] process command "currentsong"
Nov 12 14:57 : client: [302] command returned 0
Nov 12 14:57 : client: [302] closed
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "4""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "4""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "4""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "4""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "status"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "currentsong"
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [5] process command "playlistinfo "4""
Nov 12 14:57 : client: [5] command returned 0
Nov 12 14:57 : client: [303] opened from 127.0.0.1:45980
Nov 12 14:57 : client: [303] process command "stop"
Nov 12 14:57 : playlist: stop

Notice that only when I tried to play a file with sample rate above 192 SoXR made the conversion
Code: Select all
output: converting in=352800:24:2 -> f=352800:24:2 -> out=192000:24:2


In all other cases alsa played the native sample rate.


IMHO if we need to squeeze a little more the system, we have to understand and focus on the SoRX parameters
Code: Select all
soxr: soxr engine 'cr64'
soxr: soxr precision=28, phase_response=50.00, passband_end=0.91, stopband_begin=1.00


Stavros
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: RuneAudio+R e6

Postby R101 » 12 Nov 2020, 18:57

Some interesting observations there s.k.

If MPD is responsible for limiting the sample rate to the maximum the DAC can handle, that's pretty clever. From the quality point of view, it is a pity it doesn't output a multiple of the original rate, but even soxr will not automatically do a conversion which relates to the original sample rate, so I guess that is too much to expect.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: RuneAudio+R e6

Postby klassikmann » 12 Nov 2020, 19:59

Tweaking soxr

If you have a look at rern's image in https://www.runeaudio.com/forum/runeaudio-r-e6-t7141-120.html#p30565. I do not know how parameters as Phase Response, Passband End, Stopband Begin and so on is modifying the resampling result. Therefore I like to use the dafaults. What I did is to use one-time offline resampling, backup the originals and use the resampled tracks in the MPD database.

I dealt with two open source resamplers:
  1. DSD-enabled SoX
    by Måns Rullgård found at https://github.com/mansr/sox (source code only). I compiled the sources for Windows and Linux. Documentation to be found here: https://klassikmann.spdns.de/nextcloud/s/cYZRK72YwZYofBE
  2. ReSampler
    by Judd Niemann found at https://github.com/jniemann66/ReSampler (source code and binaries).
Last time I prefer ReSampler.

klassikmann
RPI 3B + HifiBerry Digi+ Pro + rAudio-1
klassikmann
 
Posts: 182
Joined: 27 Apr 2016, 18:36

Re: RuneAudio+R e6

Postby s.k. » 12 Nov 2020, 20:19

I believe that it is better –in my system - the Pi to act as transporter of the original info and let my dac to handle that info.
After all it is made specific for this job.

So I don’t like the Soxr resample everything – even if it match that way to my dac capabilities.

With my latest configuration Soxr interferes only with sample rates above my dac capabilities.
To tell the truth I am not able to notice audible differences with this configuration.
At least not in my system.
But I shall keep it this way – because I can :D

@R101
For the multiple resample of the original rate take a look here,
https://www.bitlab.nl/page_id=157
but really I don’t think that it will make any difference.
At least not in my system.

@all
Here are logs with various type of sources.
RADIO 44100
Code: Select all
    decoder: audio_format=44100:24:2, seekable=false
alsa_output: opened hw:0,0 type=HW
alsa_output: buffer: size=64..65536 time=1451..1486078
alsa_output: period: size=32..32768 time=725..743039
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer_size=22050 period_size=4410
     output: opened "snd_allo_digione" (alsa) audio_format=44100:24:2

RADIO 48000
Code: Select all
    decoder: audio_format=48000:24:2, seekable=false
     client: [8] process command "idle"
     client: [8] command returned 1
     client: [2] process command "status"
alsa_output: opened hw:0,0 type=HW
alsa_output: buffer: size=64..65536 time=1333..1365334
alsa_output: period: size=32..32768 time=666..682667
alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer_size=24000 period_size=6000
     output: opened "snd_allo_digione" (alsa) audio_format=48000:24:2

FLAC 352800
Code: Select all
    decoder: audio_format=352800:24:2, seekable=true
     client: [117] command returned 0
     client: [117] process command list
     client: process command "status"
alsa_output: opened hw:0,0 type=HW
alsa_output: buffer: size=64..65536 time=333..341334
alsa_output: period: size=32..32768 time=166..170667
alsa_output: default period_time = buffer_time/4 = 341333/4 = 85333
alsa_output: format=S24_LE (Signed 24 bit Little Endian)
alsa_output: buffer_size=65536 period_size=16384
     output: opened "snd_allo_digione" (alsa) audio_format=192000:24:2
       soxr: soxr engine 'cr64'
       soxr: soxr precision=24, phase_response=45.00, passband_end=0.95, stopband_begin=1.00 scale=0.79
       soxr: samplerate conversion ratio to 0.54
     output: converting in=352800:24:2 -> f=352800:24:2 -> out=192000:24:2
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

support RuneAudio Donate with PayPal

PreviousNext

Return to Raspberry Pi

Who is online

Users browsing this forum: Bing [Bot] and 14 guests