marcoc1712 wrote: > Not sure to completely understand the problem, from what I could see > sox with -b 16 works, -b 24 does not. If so, problem could be that your > device is 24_3 not 24, meaning in reality is a 32 bit depth but only the > most significant 24 is used. In that case yu should output 32 bit from > SOX. > > Please tell me if I misunderstood something. My limited understanding is that the 3 bytes can be in a different order, depending on the device. In the wrong order you get noise. So to be able to suit all devices you need to support different 'endian' options. See this from the sox 'man':
-L, --endian little -B, --endian big -x, --endian swap These options specify whether the byte-order of the audio data is, respectively, 'little endian', 'big endian', or the opposite to that of the system on which SoX is being used. Endianness applies only to data encoded as signed or unsigned integers of 16 or more bits. It is often necessary to specify one of these options for headerless files, and sometimes necessary for (otherwise) self-describing files. A given endian-setting option may be ignored for an input file whose header contains a specific endianness identifier, or for an output file that is actually an audio device. N.B. Unlike normal format characteristics, the endianness (byte, nibble, & bit ordering) of the input file is not automatically used for the output file; so, for example, when the following is run on a little-endian system: sox -B audio.s2 trimmed.s2 trim 2 trimmed.s2 will be created as little-endian; sox -B audio.s2 -B trimmed.s2 trim 2 must be used to preserve big-endianness in the output file. The -V option can be used to check the selected orderings. LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard. LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers. Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers. Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones. Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver. ------------------------------------------------------------------------ PasTim's Profile: http://forums.slimdevices.com/member.php?userid=41642 View this thread: http://forums.slimdevices.com/showthread.php?t=105309 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
