How To Make All Output 16 Bit?

Raspberry Pi related support

How To Make All Output 16 Bit?

Postby R101 » 23 Jul 2018, 11:42

(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: How To Make All Output 16 Bit?

Postby hondagx35 » 23 Jul 2018, 18:01

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

Re: How To Make All Output 16 Bit?

Postby R101 » 23 Jul 2018, 20:53

Thanks Frank. My mpd.conf is now writeable, but adding the format line to the file and restarting mpd does not make any difference. If I play an mp3 stream, the playback display shows 24 bit, and this is confirmed with a 'scope on the hardware.

I would be interested to know how this should work. Does MPD re-quantize the output from whatever software decodes the mp3, or does it instruct the mp3 decoder to output 16 bits?



https://pastebin.com/Wi7L6Dg6
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: How To Make All Output 16 Bit?

Postby s.k. » 24 Jul 2018, 08:12

Hi,
I think this will do the trick

If you have upgrade the MPD to the latest, maybe it works just with the new entrys on mpd.conf
Give a try
8-)
RPi2B Rev 1.1, Allo DigiOne, ATXRaspi, 16x2 OLED display - running rAudio
s.k.
 
Posts: 113
Joined: 04 Jan 2017, 08:38

Re: How To Make All Output 16 Bit?

Postby R101 » 24 Jul 2018, 11:09

Thanks s.k., but I previously tried using soxr that way and could not get it to work. MPD just seems to ignore the added mpd.conf entries. As my music files are mostly 16 bit flac, the ideal solution would be to decode all non-PCM streams to 16 bit PCM rather than 24 bit, so that there is no need to re-quantize. I do not know if that is possible.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: How To Make All Output 16 Bit?

Postby hondagx35 » 24 Jul 2018, 17:08

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

Re: How To Make All Output 16 Bit?

Postby R101 » 24 Jul 2018, 21:28

(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: How To Make All Output 16 Bit?

Postby tml3nr » 25 Jul 2018, 04:25

tml3nr
 
Posts: 56
Joined: 02 Apr 2016, 07:43

Re: How To Make All Output 16 Bit?

Postby R101 » 25 Jul 2018, 13:04

Well spotted tml3nr!

Frank,

I think I might have found the answer. It looks as if it is the XMOS interface which has to demand 16 bit from Rune, rather than the other way round. I had the interface set to have a left justified output. This passes on any bit depth sent from Rune, up to 32 bits. If I set the interface to output right justified 16 bits, that is what I get, whatever the input source and whether or not mpd.conf is modified.

I might have overlooked something, so no celebration yet, but there does not appear to be any crude truncation taking place.
(Pi 3B, rAudio-1, JLS I2S over USB)
R101
 
Posts: 343
Joined: 29 Apr 2016, 16:16

Re: How To Make All Output 16 Bit?

Postby hondagx35 » 25 Jul 2018, 16:07

Hi tml3nr,

thanks for pointing that out.

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

support RuneAudio Donate with PayPal

Next

Return to Raspberry Pi

Who is online

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